@mavnn/codemirror-lang-ink 0.9.10 → 0.9.11

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
@@ -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.11",
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",