@surrealdb/codemirror 1.0.0-beta.4 → 1.0.0-beta.6
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.cjs +1 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -0
- package/package.json +1 -1
- package/src/surrealql.ts +2 -1
package/dist/index.cjs
CHANGED
|
@@ -31,6 +31,7 @@ const languageMap = new Map([
|
|
|
31
31
|
["default", surrealqlLanguage.configure({ top: "SurrealQL" })],
|
|
32
32
|
["permission", surrealqlLanguage.configure({ top: "PermissionInput" })],
|
|
33
33
|
["combined-results", surrealqlLanguage.configure({ top: "CombinedResults" })],
|
|
34
|
+
["syntax", surrealqlLanguage.configure({ top: "Syntax" })],
|
|
34
35
|
]);
|
|
35
36
|
/**
|
|
36
37
|
* The CodeMirror extension used to add support for the SurrealQL language
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRLanguage, LanguageSupport } from '@codemirror/language';
|
|
2
2
|
|
|
3
3
|
declare const surrealqlLanguage: LRLanguage;
|
|
4
|
-
type Scope = "default" | "permission" | "combined-results";
|
|
4
|
+
type Scope = "default" | "permission" | "combined-results" | "syntax";
|
|
5
5
|
/**
|
|
6
6
|
* The CodeMirror extension used to add support for the SurrealQL language
|
|
7
7
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LRLanguage, LanguageSupport } from '@codemirror/language';
|
|
2
2
|
|
|
3
3
|
declare const surrealqlLanguage: LRLanguage;
|
|
4
|
-
type Scope = "default" | "permission" | "combined-results";
|
|
4
|
+
type Scope = "default" | "permission" | "combined-results" | "syntax";
|
|
5
5
|
/**
|
|
6
6
|
* The CodeMirror extension used to add support for the SurrealQL language
|
|
7
7
|
*/
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ const languageMap = /*@__PURE__*/new Map([
|
|
|
29
29
|
["default", /*@__PURE__*/surrealqlLanguage.configure({ top: "SurrealQL" })],
|
|
30
30
|
["permission", /*@__PURE__*/surrealqlLanguage.configure({ top: "PermissionInput" })],
|
|
31
31
|
["combined-results", /*@__PURE__*/surrealqlLanguage.configure({ top: "CombinedResults" })],
|
|
32
|
+
["syntax", /*@__PURE__*/surrealqlLanguage.configure({ top: "Syntax" })],
|
|
32
33
|
]);
|
|
33
34
|
/**
|
|
34
35
|
* The CodeMirror extension used to add support for the SurrealQL language
|
package/package.json
CHANGED
package/src/surrealql.ts
CHANGED
|
@@ -34,12 +34,13 @@ export const surrealqlLanguage = LRLanguage.define({
|
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
type Scope = "default" | "permission" | "combined-results";
|
|
37
|
+
type Scope = "default" | "permission" | "combined-results" | "syntax";
|
|
38
38
|
|
|
39
39
|
const languageMap = new Map<Scope, LRLanguage>([
|
|
40
40
|
["default", surrealqlLanguage.configure({ top: "SurrealQL" })],
|
|
41
41
|
["permission", surrealqlLanguage.configure({ top: "PermissionInput" })],
|
|
42
42
|
["combined-results", surrealqlLanguage.configure({ top: "CombinedResults" })],
|
|
43
|
+
["syntax", surrealqlLanguage.configure({ top: "Syntax" })],
|
|
43
44
|
]);
|
|
44
45
|
|
|
45
46
|
/**
|