codemirror-lang-glimmer 0.0.0-beta.4 → 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.cjs +2 -2
- package/.turbo/turbo-build.log +5 -21
- package/.turbo/turbo-lint$colon$js$colon$fix.log +7 -0
- package/.turbo/turbo-lint$colon$js.log +7 -0
- package/.turbo/turbo-lint$colon$prettier$colon$fix.log +15 -0
- package/.turbo/turbo-lint$colon$prettier.log +9 -0
- package/.turbo/turbo-lint$colon$types.log +5 -0
- package/CHANGELOG.md +8 -0
- package/LICENSE +21 -0
- package/dev/.eslintcache +1 -0
- package/dev/.eslintrc.cjs +2 -2
- package/dev/CHANGELOG.md +3 -0
- package/dev/index.html +1 -1
- package/dev/index.ts +43 -3
- package/dev/node_modules/.bin/eslint +4 -4
- package/dev/node_modules/.bin/prettier +4 -4
- package/dev/node_modules/.bin/tsc +4 -4
- package/dev/node_modules/.bin/tsserver +4 -4
- package/dev/node_modules/.bin/vite +4 -4
- package/dev/package.json +27 -15
- package/dev/watch.cjs +3 -3
- package/dist/index.cjs +287 -386
- package/dist/index.d.cts +22 -4
- package/dist/index.d.ts +22 -4
- package/dist/index.js +287 -388
- package/package.json +42 -26
- package/src/auto-close.ts +91 -0
- package/src/glimmer.ts +79 -0
- package/src/index.ts +3 -132
- package/src/language.ts +176 -0
- package/src/snippets.ts +48 -0
- package/tsconfig.json +2 -1
- package/.eslintignore +0 -2
- package/.prettierignore +0 -2
- package/.prettierrc.cjs +0 -20
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/src/highlight.ts +0 -57
- package/src/syntax.grammar +0 -139
- package/src/syntax.grammar.d.ts +0 -3
- package/src/syntax.grammar.terms.d.ts +0 -14
- package/src/tokens.ts +0 -277
- package/tests/.eslintrc.cjs +0 -5
- package/tests/comments.txt +0 -116
- package/tests/complex.txt +0 -24
- package/tests/expression.txt +0 -95
- package/tests/literals.txt +0 -78
- package/tests/node_modules/.bin/eslint +0 -17
- package/tests/node_modules/.bin/prettier +0 -17
- package/tests/node_modules/.bin/tsc +0 -17
- package/tests/node_modules/.bin/tsserver +0 -17
- package/tests/numbers.txt +0 -88
- package/tests/package.json +0 -25
- package/tests/property-paths.txt +0 -79
- package/tests/strings.txt +0 -64
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Parser } from '@lezer/common';
|
|
3
|
+
import { Completion } from '@codemirror/autocomplete';
|
|
4
|
+
|
|
4
5
|
declare function glimmer(): LanguageSupport;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
type NestedLang = {
|
|
8
|
+
tag: 'script' | 'style' | 'textarea';
|
|
9
|
+
attrs?: (attrs: {
|
|
10
|
+
[attr: string]: string;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
parser: Parser;
|
|
13
|
+
};
|
|
14
|
+
declare const defaultNesting: NestedLang[];
|
|
15
|
+
declare const glimmerPlain: LRLanguage;
|
|
16
|
+
declare const glimmerLanguage: LRLanguage;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
A collection of JavaScript-related
|
|
20
|
+
[snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
|
|
21
|
+
*/
|
|
22
|
+
declare const snippets: readonly Completion[];
|
|
23
|
+
|
|
24
|
+
export { defaultNesting, glimmer, glimmerLanguage, glimmerPlain, snippets };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { LanguageSupport, LRLanguage } from '@codemirror/language';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { Parser } from '@lezer/common';
|
|
3
|
+
import { Completion } from '@codemirror/autocomplete';
|
|
4
|
+
|
|
4
5
|
declare function glimmer(): LanguageSupport;
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
|
|
7
|
+
type NestedLang = {
|
|
8
|
+
tag: 'script' | 'style' | 'textarea';
|
|
9
|
+
attrs?: (attrs: {
|
|
10
|
+
[attr: string]: string;
|
|
11
|
+
}) => boolean;
|
|
12
|
+
parser: Parser;
|
|
13
|
+
};
|
|
14
|
+
declare const defaultNesting: NestedLang[];
|
|
15
|
+
declare const glimmerPlain: LRLanguage;
|
|
16
|
+
declare const glimmerLanguage: LRLanguage;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
A collection of JavaScript-related
|
|
20
|
+
[snippets](https://codemirror.net/6/docs/ref/#autocomplete.snippet).
|
|
21
|
+
*/
|
|
22
|
+
declare const snippets: readonly Completion[];
|
|
23
|
+
|
|
24
|
+
export { defaultNesting, glimmer, glimmerLanguage, glimmerPlain, snippets };
|