@mavnn/codemirror-lang-ink 0.9.10 → 0.9.12

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/dist/index.js CHANGED
@@ -136,7 +136,7 @@ const InkLanguage = LRLanguage.define({
136
136
  ConstDeclaration: tags.keyword,
137
137
  ListDeclaration: tags.keyword,
138
138
  ListDefinition: tags.keyword,
139
- StackDefinition: tags.keyword,
139
+ StackDeclaration: tags.keyword,
140
140
  SelectedName: tags.literal,
141
141
  VariableAssignment: tags.keyword,
142
142
  Adjust: tags.operator,
@@ -161,6 +161,9 @@ const InkLanguage = LRLanguage.define({
161
161
  ]
162
162
  }), languageData: { commentTokens: { line: "//", block: { open: "/*", close: "*/" } } }
163
163
  });
164
- const InkLanguageSupport = new LanguageSupport(InkLanguage);
164
+ const InkLanguageSupport = (config) => {
165
+ const configured = InkLanguage.configure(config);
166
+ return new LanguageSupport(configured);
167
+ };
165
168
 
166
169
  export { InkLanguage, InkLanguageSupport };
@@ -1,3 +1,5 @@
1
1
  import { LRLanguage, LanguageSupport } from "@codemirror/language";
2
2
  export declare const InkLanguage: LRLanguage;
3
- export declare const InkLanguageSupport: LanguageSupport;
3
+ export declare const InkLanguageSupport: (config: {
4
+ dialect?: "visualink";
5
+ }) => LanguageSupport;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mavnn/codemirror-lang-ink",
3
- "version": "0.9.10",
3
+ "version": "0.9.12",
4
4
  "description": "Ink language support for the CodeMirror code editor",
5
5
  "scripts": {
6
6
  "pre-gen": "mkdir -p src/generated && lezer-generator src/syntax.grammar -o src/generated/parser",