codemirror-lang-liquidsoap 0.4.2 → 0.4.3
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/cli.js +4 -2
- package/dist/index.js +4 -2
- package/package.json +18 -18
- package/src/tokens.js +3 -1
- package/tsconfig.json +5 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codemirror-lang-liquidsoap",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "Liquidsoap language support for prosemirror",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"bin": {
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
"author": "Romain Beauxis <toots@rastageeks.org>",
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@lezer/generator": "^1.
|
|
20
|
-
"@rollup/plugin-typescript": "^
|
|
21
|
-
"@types/bluebird": "^3.5.
|
|
22
|
-
"@types/minimist": "^1.2.
|
|
23
|
-
"codemirror": "^6.0.
|
|
24
|
-
"prettier": "^3.
|
|
25
|
-
"rollup": "^
|
|
26
|
-
"rollup-plugin-delete": "^
|
|
27
|
-
"rollup-plugin-dts": "^6.1
|
|
19
|
+
"@lezer/generator": "^1.8.1",
|
|
20
|
+
"@rollup/plugin-typescript": "^12.3.1",
|
|
21
|
+
"@types/bluebird": "^3.5.42",
|
|
22
|
+
"@types/minimist": "^1.2.5",
|
|
23
|
+
"codemirror": "^6.0.2",
|
|
24
|
+
"prettier": "^3.9.10",
|
|
25
|
+
"rollup": "^4.65.1",
|
|
26
|
+
"rollup-plugin-delete": "^3.0.2",
|
|
27
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
28
28
|
"rollup-plugin-preserve-shebang": "^1.0.1",
|
|
29
29
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
30
|
-
"tslib": "^2.
|
|
31
|
-
"typescript": "^
|
|
30
|
+
"tslib": "^2.8.1",
|
|
31
|
+
"typescript": "^6.0.3"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@codemirror/language": "^6.
|
|
35
|
-
"@lezer/common": "^1.
|
|
36
|
-
"@lezer/highlight": "^1.
|
|
37
|
-
"@lezer/lr": "^1.
|
|
38
|
-
"@types/node": "^
|
|
34
|
+
"@codemirror/language": "^6.13.1",
|
|
35
|
+
"@lezer/common": "^1.5.4",
|
|
36
|
+
"@lezer/highlight": "^1.2.5",
|
|
37
|
+
"@lezer/lr": "^1.4.11",
|
|
38
|
+
"@types/node": "^26.6.5",
|
|
39
39
|
"bluebird": "^3.7.2",
|
|
40
|
-
"glob": "^
|
|
40
|
+
"glob": "^13.0.6",
|
|
41
41
|
"minimist": "^1.2.8"
|
|
42
42
|
},
|
|
43
43
|
"repository": {
|
package/src/tokens.js
CHANGED
|
@@ -215,7 +215,9 @@ export const uminusTok = new ExternalTokenizer(
|
|
|
215
215
|
if (["}", ")"].includes(String.fromCharCode(prev)))
|
|
216
216
|
stack.context.disabled = true;
|
|
217
217
|
if (/[0-9]/.test(String.fromCharCode(prev))) stack.context.disabled = true;
|
|
218
|
-
|
|
218
|
+
// An operator or opening bracket is followed by an operand, so a "-" after
|
|
219
|
+
// one is a sign. "?" and ":" cover the ternary and "??".
|
|
220
|
+
if (/[,=(.+\-/*?:;<>[{|&!%^@]/.test(String.fromCharCode(prev)))
|
|
219
221
|
stack.context.disabled = false;
|
|
220
222
|
if (keywords.includes(previousKeyword(input, 0)))
|
|
221
223
|
stack.context.disabled = false;
|
package/tsconfig.json
CHANGED
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
"compileOnSave": false,
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"target": "es2015",
|
|
5
|
-
"
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"rootDir": "./src",
|
|
8
|
+
"types": ["node"],
|
|
6
9
|
"strict": true,
|
|
7
10
|
"declaration": true,
|
|
8
11
|
"esModuleInterop": true,
|
|
@@ -11,7 +14,7 @@
|
|
|
11
14
|
"importHelpers": true,
|
|
12
15
|
"skipLibCheck": true,
|
|
13
16
|
"resolveJsonModule": true,
|
|
14
|
-
"declarationDir": "./types"
|
|
17
|
+
"declarationDir": "./dist/types"
|
|
15
18
|
},
|
|
16
19
|
"include": [
|
|
17
20
|
"src/**/*.ts"
|