@exercism/codemirror-lang-wren 0.7.1 → 1.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/README.md +33 -3
- package/dist/index.cjs +278 -2405
- package/dist/index.es.js +278 -2408
- package/index.d.ts +6 -4
- package/package.json +12 -12
package/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { Completion } from "@codemirror/autocomplete"
|
|
2
|
-
import { LanguageSupport,
|
|
1
|
+
import { Completion, CompletionSource } from "@codemirror/autocomplete"
|
|
2
|
+
import { LanguageSupport, LRLanguage } from "@codemirror/language"
|
|
3
3
|
|
|
4
|
-
export const wrenLanguage:
|
|
4
|
+
export const wrenLanguage: LRLanguage
|
|
5
5
|
export function wren(config?: {}): LanguageSupport
|
|
6
6
|
export const snippets: Completion[]
|
|
7
|
-
|
|
7
|
+
export const localCompletionSource: CompletionSource
|
|
8
|
+
export const memberCompletionSource: CompletionSource
|
|
9
|
+
export const globalCompletionSource: CompletionSource
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exercism/codemirror-lang-wren",
|
|
3
3
|
"description": "Wren Lezer parser and language support for CodeMirror",
|
|
4
|
-
"author": "Josh Goebel <
|
|
5
|
-
"version": "0.
|
|
4
|
+
"author": "Josh Goebel <hello@joshgoebel.com>",
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
|
-
"url": "https://github.com/exercism/codemirror-lang-wren"
|
|
9
|
+
"url": "git+https://github.com/exercism/codemirror-lang-wren.git"
|
|
10
10
|
},
|
|
11
11
|
"imports": {
|
|
12
12
|
"#parser": "./src/lezer/parser.js"
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
"import": "./dist/index.es.js",
|
|
19
19
|
"require": "./dist/index.cjs"
|
|
20
20
|
},
|
|
21
|
-
"type": "module",
|
|
22
21
|
"types": "index.d.ts",
|
|
23
22
|
"scripts": {
|
|
24
23
|
"test": "mocha test/test-*.js",
|
|
@@ -29,17 +28,18 @@
|
|
|
29
28
|
"build-devtool": "npm run build-grammar && rollup -c rollup.config.devtool.js"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
|
-
"@codemirror/autocomplete": "^0.
|
|
33
|
-
"@codemirror/
|
|
34
|
-
"@
|
|
31
|
+
"@codemirror/autocomplete": "^6.0.0",
|
|
32
|
+
"@codemirror/language": "^6.0.0",
|
|
33
|
+
"@lezer/highlight": "^1.0.0",
|
|
34
|
+
"@lezer/lr": "^1.0.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"
|
|
38
|
-
"@
|
|
39
|
-
"
|
|
40
|
-
"
|
|
37
|
+
"codemirror": "^6.0.0",
|
|
38
|
+
"@lezer/generator": "^1.1.1",
|
|
39
|
+
"@rollup/plugin-node-resolve": "^14.1.0",
|
|
40
|
+
"colors": "^1.4.0",
|
|
41
41
|
"rollup": "^2.50.4",
|
|
42
|
-
"
|
|
42
|
+
"mocha": "^10.0.0"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"dist",
|