groove-dev 0.15.1 → 0.16.1
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/docs/FILE-EDITOR-PLAN.md +253 -0
- package/node_modules/@codemirror/autocomplete/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/autocomplete/CHANGELOG.md +639 -0
- package/node_modules/@codemirror/autocomplete/LICENSE +21 -0
- package/node_modules/@codemirror/autocomplete/README.md +43 -0
- package/node_modules/@codemirror/autocomplete/dist/index.cjs +2151 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.cts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.d.ts +648 -0
- package/node_modules/@codemirror/autocomplete/dist/index.js +2120 -0
- package/node_modules/@codemirror/autocomplete/package.json +41 -0
- package/node_modules/@codemirror/commands/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/commands/CHANGELOG.md +386 -0
- package/node_modules/@codemirror/commands/LICENSE +21 -0
- package/node_modules/@codemirror/commands/README.md +35 -0
- package/node_modules/@codemirror/commands/dist/index.cjs +1909 -0
- package/node_modules/@codemirror/commands/dist/index.d.cts +650 -0
- package/node_modules/@codemirror/commands/dist/index.d.ts +650 -0
- package/node_modules/@codemirror/commands/dist/index.js +1795 -0
- package/node_modules/@codemirror/commands/package.json +42 -0
- package/node_modules/@codemirror/lang-css/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-css/CHANGELOG.md +106 -0
- package/node_modules/@codemirror/lang-css/LICENSE +21 -0
- package/node_modules/@codemirror/lang-css/README.md +50 -0
- package/node_modules/@codemirror/lang-css/dist/index.cjs +269 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.cts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.d.ts +28 -0
- package/node_modules/@codemirror/lang-css/dist/index.js +264 -0
- package/node_modules/@codemirror/lang-css/package.json +42 -0
- package/node_modules/@codemirror/lang-html/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-html/CHANGELOG.md +210 -0
- package/node_modules/@codemirror/lang-html/LICENSE +21 -0
- package/node_modules/@codemirror/lang-html/README.md +147 -0
- package/node_modules/@codemirror/lang-html/dist/index.cjs +667 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.cts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.d.ts +115 -0
- package/node_modules/@codemirror/lang-html/dist/index.js +661 -0
- package/node_modules/@codemirror/lang-html/package.json +46 -0
- package/node_modules/@codemirror/lang-javascript/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-javascript/CHANGELOG.md +206 -0
- package/node_modules/@codemirror/lang-javascript/LICENSE +21 -0
- package/node_modules/@codemirror/lang-javascript/README.md +125 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.cjs +526 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.cts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.d.ts +93 -0
- package/node_modules/@codemirror/lang-javascript/dist/index.js +513 -0
- package/node_modules/@codemirror/lang-javascript/package.json +45 -0
- package/node_modules/@codemirror/lang-json/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-json/CHANGELOG.md +59 -0
- package/node_modules/@codemirror/lang-json/LICENSE +21 -0
- package/node_modules/@codemirror/lang-json/README.md +56 -0
- package/node_modules/@codemirror/lang-json/dist/index.cjs +68 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.cts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.d.ts +22 -0
- package/node_modules/@codemirror/lang-json/dist/index.js +64 -0
- package/node_modules/@codemirror/lang-json/package.json +39 -0
- package/node_modules/@codemirror/lang-markdown/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-markdown/CHANGELOG.md +246 -0
- package/node_modules/@codemirror/lang-markdown/LICENSE +21 -0
- package/node_modules/@codemirror/lang-markdown/README.md +162 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.cjs +501 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.cts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.d.ts +124 -0
- package/node_modules/@codemirror/lang-markdown/dist/index.js +492 -0
- package/node_modules/@codemirror/lang-markdown/package.json +44 -0
- package/node_modules/@codemirror/lang-python/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lang-python/CHANGELOG.md +174 -0
- package/node_modules/@codemirror/lang-python/LICENSE +21 -0
- package/node_modules/@codemirror/lang-python/README.md +61 -0
- package/node_modules/@codemirror/lang-python/dist/index.cjs +313 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.cts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.d.ts +26 -0
- package/node_modules/@codemirror/lang-python/dist/index.js +308 -0
- package/node_modules/@codemirror/lang-python/package.json +42 -0
- package/node_modules/@codemirror/language/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/language/CHANGELOG.md +412 -0
- package/node_modules/@codemirror/language/LICENSE +21 -0
- package/node_modules/@codemirror/language/README.md +66 -0
- package/node_modules/@codemirror/language/dist/index.cjs +2742 -0
- package/node_modules/@codemirror/language/dist/index.d.cts +1220 -0
- package/node_modules/@codemirror/language/dist/index.d.ts +1220 -0
- package/node_modules/@codemirror/language/dist/index.js +2687 -0
- package/node_modules/@codemirror/language/package.json +44 -0
- package/node_modules/@codemirror/lint/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/lint/CHANGELOG.md +318 -0
- package/node_modules/@codemirror/lint/LICENSE +21 -0
- package/node_modules/@codemirror/lint/README.md +18 -0
- package/node_modules/@codemirror/lint/dist/index.cjs +958 -0
- package/node_modules/@codemirror/lint/dist/index.d.cts +195 -0
- package/node_modules/@codemirror/lint/dist/index.d.ts +195 -0
- package/node_modules/@codemirror/lint/dist/index.js +945 -0
- package/node_modules/@codemirror/lint/package.json +40 -0
- package/node_modules/@codemirror/search/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/search/CHANGELOG.md +324 -0
- package/node_modules/@codemirror/search/LICENSE +21 -0
- package/node_modules/@codemirror/search/README.md +18 -0
- package/node_modules/@codemirror/search/dist/index.cjs +1237 -0
- package/node_modules/@codemirror/search/dist/index.d.cts +385 -0
- package/node_modules/@codemirror/search/dist/index.d.ts +385 -0
- package/node_modules/@codemirror/search/dist/index.js +1217 -0
- package/node_modules/@codemirror/search/package.json +40 -0
- package/node_modules/@codemirror/state/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/state/CHANGELOG.md +308 -0
- package/node_modules/@codemirror/state/LICENSE +21 -0
- package/node_modules/@codemirror/state/README.md +18 -0
- package/node_modules/@codemirror/state/dist/index.cjs +3922 -0
- package/node_modules/@codemirror/state/dist/index.d.cts +1713 -0
- package/node_modules/@codemirror/state/dist/index.d.ts +1713 -0
- package/node_modules/@codemirror/state/dist/index.js +3892 -0
- package/node_modules/@codemirror/state/package.json +38 -0
- package/node_modules/@codemirror/theme-one-dark/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/theme-one-dark/CHANGELOG.md +97 -0
- package/node_modules/@codemirror/theme-one-dark/LICENSE +21 -0
- package/node_modules/@codemirror/theme-one-dark/README.md +46 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.cjs +139 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.cts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.d.ts +39 -0
- package/node_modules/@codemirror/theme-one-dark/dist/index.js +134 -0
- package/node_modules/@codemirror/theme-one-dark/package.json +41 -0
- package/node_modules/@codemirror/view/.github/workflows/dispatch.yml +16 -0
- package/node_modules/@codemirror/view/CHANGELOG.md +2284 -0
- package/node_modules/@codemirror/view/LICENSE +21 -0
- package/node_modules/@codemirror/view/README.md +37 -0
- package/node_modules/@codemirror/view/dist/index.cjs +11796 -0
- package/node_modules/@codemirror/view/dist/index.d.cts +2389 -0
- package/node_modules/@codemirror/view/dist/index.d.ts +2389 -0
- package/node_modules/@codemirror/view/dist/index.js +11745 -0
- package/node_modules/@codemirror/view/package.json +41 -0
- package/node_modules/@groove-dev/daemon/src/api.js +268 -2
- package/node_modules/@groove-dev/daemon/src/filewatcher.js +59 -0
- package/node_modules/@groove-dev/daemon/src/index.js +28 -1
- package/node_modules/@groove-dev/daemon/src/mimetypes.js +43 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-BQSznoq0.js +103 -0
- package/node_modules/@groove-dev/gui/dist/index.html +1 -1
- package/node_modules/@groove-dev/gui/package.json +15 -2
- package/node_modules/@groove-dev/gui/src/App.jsx +3 -0
- package/node_modules/@groove-dev/gui/src/components/CodeEditor.jsx +143 -0
- package/node_modules/@groove-dev/gui/src/components/EditorTabs.jsx +83 -0
- package/node_modules/@groove-dev/gui/src/components/FileTree.jsx +492 -0
- package/node_modules/@groove-dev/gui/src/components/MediaViewer.jsx +104 -0
- package/node_modules/@groove-dev/gui/src/stores/groove.js +287 -1
- package/node_modules/@groove-dev/gui/src/views/FileEditor.jsx +149 -0
- package/node_modules/@lezer/common/LICENSE +21 -0
- package/node_modules/@lezer/common/README.md +14 -0
- package/node_modules/@lezer/common/dist/index.cjs +2209 -0
- package/node_modules/@lezer/common/dist/index.d.cts +1174 -0
- package/node_modules/@lezer/common/dist/index.d.ts +1174 -0
- package/node_modules/@lezer/common/dist/index.js +2196 -0
- package/node_modules/@lezer/common/package.json +32 -0
- package/node_modules/@lezer/css/CHANGELOG.md +307 -0
- package/node_modules/@lezer/css/LICENSE +21 -0
- package/node_modules/@lezer/css/README.md +6 -0
- package/node_modules/@lezer/css/dist/index.cjs +151 -0
- package/node_modules/@lezer/css/dist/index.d.cts +3 -0
- package/node_modules/@lezer/css/dist/index.d.ts +3 -0
- package/node_modules/@lezer/css/dist/index.js +147 -0
- package/node_modules/@lezer/css/package.json +36 -0
- package/node_modules/@lezer/css/rollup.config.js +16 -0
- package/node_modules/@lezer/css/src/css.grammar +290 -0
- package/node_modules/@lezer/css/src/highlight.js +36 -0
- package/node_modules/@lezer/css/src/parser.js +31 -0
- package/node_modules/@lezer/css/src/parser.terms.js +63 -0
- package/node_modules/@lezer/css/src/tokens.js +75 -0
- package/node_modules/@lezer/css/test/declarations.txt +241 -0
- package/node_modules/@lezer/css/test/selector.txt +178 -0
- package/node_modules/@lezer/css/test/statements.txt +227 -0
- package/node_modules/@lezer/css/test/test-css.js +16 -0
- package/node_modules/@lezer/highlight/LICENSE +21 -0
- package/node_modules/@lezer/highlight/README.md +14 -0
- package/node_modules/@lezer/highlight/dist/index.cjs +936 -0
- package/node_modules/@lezer/highlight/dist/index.d.cts +623 -0
- package/node_modules/@lezer/highlight/dist/index.d.ts +623 -0
- package/node_modules/@lezer/highlight/dist/index.js +927 -0
- package/node_modules/@lezer/highlight/package.json +31 -0
- package/node_modules/@lezer/html/CHANGELOG.md +303 -0
- package/node_modules/@lezer/html/LICENSE +21 -0
- package/node_modules/@lezer/html/README.md +37 -0
- package/node_modules/@lezer/html/dist/index.cjs +354 -0
- package/node_modules/@lezer/html/dist/index.d.cts +14 -0
- package/node_modules/@lezer/html/dist/index.d.ts +14 -0
- package/node_modules/@lezer/html/dist/index.js +349 -0
- package/node_modules/@lezer/html/package.json +37 -0
- package/node_modules/@lezer/html/rollup.config.js +16 -0
- package/node_modules/@lezer/html/src/.tern-port +1 -0
- package/node_modules/@lezer/html/src/content.js +87 -0
- package/node_modules/@lezer/html/src/highlight.js +15 -0
- package/node_modules/@lezer/html/src/html.grammar +181 -0
- package/node_modules/@lezer/html/src/index.js +2 -0
- package/node_modules/@lezer/html/src/parser.js +27 -0
- package/node_modules/@lezer/html/src/parser.terms.js +53 -0
- package/node_modules/@lezer/html/src/tokens.js +199 -0
- package/node_modules/@lezer/html/test/mixed.txt +69 -0
- package/node_modules/@lezer/html/test/tags.txt +370 -0
- package/node_modules/@lezer/html/test/test-html.js +29 -0
- package/node_modules/@lezer/html/test/test-incremental.js +97 -0
- package/node_modules/@lezer/html/test/vue.txt +56 -0
- package/node_modules/@lezer/javascript/CHANGELOG.md +485 -0
- package/node_modules/@lezer/javascript/LICENSE +21 -0
- package/node_modules/@lezer/javascript/README.md +14 -0
- package/node_modules/@lezer/javascript/dist/index.cjs +196 -0
- package/node_modules/@lezer/javascript/dist/index.d.cts +3 -0
- package/node_modules/@lezer/javascript/dist/index.d.ts +3 -0
- package/node_modules/@lezer/javascript/dist/index.js +192 -0
- package/node_modules/@lezer/javascript/package.json +36 -0
- package/node_modules/@lezer/javascript/rollup.config.js +16 -0
- package/node_modules/@lezer/javascript/src/highlight.js +62 -0
- package/node_modules/@lezer/javascript/src/javascript.grammar +735 -0
- package/node_modules/@lezer/javascript/src/parser.js +33 -0
- package/node_modules/@lezer/javascript/src/parser.terms.js +177 -0
- package/node_modules/@lezer/javascript/src/tokens.js +87 -0
- package/node_modules/@lezer/javascript/test/decorator.txt +64 -0
- package/node_modules/@lezer/javascript/test/expression.txt +686 -0
- package/node_modules/@lezer/javascript/test/jsx.txt +79 -0
- package/node_modules/@lezer/javascript/test/semicolon.txt +77 -0
- package/node_modules/@lezer/javascript/test/statement.txt +404 -0
- package/node_modules/@lezer/javascript/test/test-javascript.js +17 -0
- package/node_modules/@lezer/javascript/test/typescript.txt +401 -0
- package/node_modules/@lezer/json/CHANGELOG.md +79 -0
- package/node_modules/@lezer/json/LICENSE +21 -0
- package/node_modules/@lezer/json/README.md +7 -0
- package/node_modules/@lezer/json/dist/index.cjs +41 -0
- package/node_modules/@lezer/json/dist/index.d.cts +3 -0
- package/node_modules/@lezer/json/dist/index.d.ts +3 -0
- package/node_modules/@lezer/json/dist/index.js +37 -0
- package/node_modules/@lezer/json/package.json +36 -0
- package/node_modules/@lezer/json/rollup.config.js +15 -0
- package/node_modules/@lezer/json/src/highlight.js +12 -0
- package/node_modules/@lezer/json/src/json.grammar +38 -0
- package/node_modules/@lezer/json/src/parser.js +23 -0
- package/node_modules/@lezer/json/src/parser.terms.js +12 -0
- package/node_modules/@lezer/json/test/arrays.txt +34 -0
- package/node_modules/@lezer/json/test/literals.txt +23 -0
- package/node_modules/@lezer/json/test/numbers.txt +87 -0
- package/node_modules/@lezer/json/test/objects.txt +34 -0
- package/node_modules/@lezer/json/test/strings.txt +50 -0
- package/node_modules/@lezer/json/test/test-json.js +17 -0
- package/node_modules/@lezer/lr/LICENSE +21 -0
- package/node_modules/@lezer/lr/README.md +25 -0
- package/node_modules/@lezer/lr/dist/constants.d.ts +45 -0
- package/node_modules/@lezer/lr/dist/constants.js +5 -0
- package/node_modules/@lezer/lr/dist/index.cjs +1891 -0
- package/node_modules/@lezer/lr/dist/index.d.cts +303 -0
- package/node_modules/@lezer/lr/dist/index.d.ts +303 -0
- package/node_modules/@lezer/lr/dist/index.js +1884 -0
- package/node_modules/@lezer/lr/package.json +32 -0
- package/node_modules/@lezer/markdown/CHANGELOG.md +279 -0
- package/node_modules/@lezer/markdown/LICENSE +21 -0
- package/node_modules/@lezer/markdown/README.md +725 -0
- package/node_modules/@lezer/markdown/bin/build-readme.cjs +39 -0
- package/node_modules/@lezer/markdown/build.js +16 -0
- package/node_modules/@lezer/markdown/dist/index.cjs +2352 -0
- package/node_modules/@lezer/markdown/dist/index.d.cts +600 -0
- package/node_modules/@lezer/markdown/dist/index.d.ts +600 -0
- package/node_modules/@lezer/markdown/dist/index.js +2335 -0
- package/node_modules/@lezer/markdown/package.json +37 -0
- package/node_modules/@lezer/markdown/src/README.md +83 -0
- package/node_modules/@lezer/markdown/src/extension.ts +301 -0
- package/node_modules/@lezer/markdown/src/index.ts +5 -0
- package/node_modules/@lezer/markdown/src/markdown.ts +1961 -0
- package/node_modules/@lezer/markdown/src/nest.ts +46 -0
- package/node_modules/@lezer/markdown/test/compare-tree.ts +14 -0
- package/node_modules/@lezer/markdown/test/spec.ts +79 -0
- package/node_modules/@lezer/markdown/test/test-extension.ts +269 -0
- package/node_modules/@lezer/markdown/test/test-incremental.ts +265 -0
- package/node_modules/@lezer/markdown/test/test-markdown.ts +3574 -0
- package/node_modules/@lezer/markdown/test/test-nesting.ts +86 -0
- package/node_modules/@lezer/markdown/test/tsconfig.json +12 -0
- package/node_modules/@lezer/markdown/tsconfig.json +14 -0
- package/node_modules/@lezer/python/CHANGELOG.md +243 -0
- package/node_modules/@lezer/python/LICENSE +21 -0
- package/node_modules/@lezer/python/README.md +6 -0
- package/node_modules/@lezer/python/dist/index.cjs +330 -0
- package/node_modules/@lezer/python/dist/index.d.cts +3 -0
- package/node_modules/@lezer/python/dist/index.d.ts +3 -0
- package/node_modules/@lezer/python/dist/index.js +326 -0
- package/node_modules/@lezer/python/package.json +36 -0
- package/node_modules/@lezer/python/rollup.config.js +16 -0
- package/node_modules/@lezer/python/src/highlight.js +35 -0
- package/node_modules/@lezer/python/src/python.grammar +381 -0
- package/node_modules/@lezer/python/src/tokens.js +224 -0
- package/node_modules/@lezer/python/test/expression.txt +231 -0
- package/node_modules/@lezer/python/test/statement.txt +442 -0
- package/node_modules/@lezer/python/test/test-incremental.js +33 -0
- package/node_modules/@lezer/python/test/test-python.js +17 -0
- package/node_modules/@marijn/find-cluster-break/LICENSE +21 -0
- package/node_modules/@marijn/find-cluster-break/README.md +28 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.cjs +85 -0
- package/node_modules/@marijn/find-cluster-break/dist/index.d.cts +15 -0
- package/node_modules/@marijn/find-cluster-break/package.json +35 -0
- package/node_modules/@marijn/find-cluster-break/rollup.config.js +7 -0
- package/node_modules/@marijn/find-cluster-break/src/index.d.ts +15 -0
- package/node_modules/@marijn/find-cluster-break/src/index.js +87 -0
- package/node_modules/@marijn/find-cluster-break/test/test-cluster.js +30 -0
- package/node_modules/crelt/LICENSE +19 -0
- package/node_modules/crelt/README.md +23 -0
- package/node_modules/crelt/dist/index.cjs +31 -0
- package/node_modules/crelt/dist/index.d.cts +4 -0
- package/node_modules/crelt/index.d.ts +4 -0
- package/node_modules/crelt/index.js +28 -0
- package/node_modules/crelt/package.json +35 -0
- package/node_modules/crelt/rollup.config.js +13 -0
- package/node_modules/style-mod/LICENSE +19 -0
- package/node_modules/style-mod/README.md +98 -0
- package/node_modules/style-mod/dist/style-mod.cjs +165 -0
- package/node_modules/style-mod/dist/style-mod.d.cts +16 -0
- package/node_modules/style-mod/package.json +39 -0
- package/node_modules/style-mod/src/README.md +34 -0
- package/node_modules/style-mod/src/style-mod.d.ts +16 -0
- package/node_modules/style-mod/src/style-mod.js +172 -0
- package/node_modules/style-mod/test/test-style-mod.js +104 -0
- package/node_modules/w3c-keyname/.tern-port +1 -0
- package/node_modules/w3c-keyname/LICENSE +19 -0
- package/node_modules/w3c-keyname/README.md +18 -0
- package/node_modules/w3c-keyname/index.cjs +127 -0
- package/node_modules/w3c-keyname/index.d.cts +5 -0
- package/node_modules/w3c-keyname/index.d.ts +5 -0
- package/node_modules/w3c-keyname/index.js +119 -0
- package/node_modules/w3c-keyname/package.json +37 -0
- package/package.json +1 -1
- package/packages/daemon/src/api.js +268 -2
- package/packages/daemon/src/filewatcher.js +59 -0
- package/packages/daemon/src/index.js +28 -1
- package/packages/daemon/src/mimetypes.js +43 -0
- package/packages/gui/dist/assets/index-BQSznoq0.js +103 -0
- package/packages/gui/dist/index.html +1 -1
- package/packages/gui/package.json +15 -2
- package/packages/gui/src/App.jsx +3 -0
- package/packages/gui/src/components/CodeEditor.jsx +143 -0
- package/packages/gui/src/components/EditorTabs.jsx +83 -0
- package/packages/gui/src/components/FileTree.jsx +492 -0
- package/packages/gui/src/components/MediaViewer.jsx +104 -0
- package/packages/gui/src/stores/groove.js +287 -1
- package/packages/gui/src/views/FileEditor.jsx +149 -0
- package/node_modules/@groove-dev/gui/dist/assets/index-8Kqi_LVo.js +0 -74
- package/packages/gui/dist/assets/index-8Kqi_LVo.js +0 -74
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@top JsonText { value }
|
|
2
|
+
|
|
3
|
+
value { True | False | Null | Number | String | Object | Array }
|
|
4
|
+
|
|
5
|
+
String[isolate] { string }
|
|
6
|
+
Object { "{" list<Property>? "}" }
|
|
7
|
+
Array { "[" list<value>? "]" }
|
|
8
|
+
|
|
9
|
+
Property { PropertyName ":" value }
|
|
10
|
+
PropertyName[isolate] { string }
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@tokens {
|
|
14
|
+
True { "true" }
|
|
15
|
+
False { "false" }
|
|
16
|
+
Null { "null" }
|
|
17
|
+
|
|
18
|
+
Number { '-'? int frac? exp? }
|
|
19
|
+
int { '0' | $[1-9] @digit* }
|
|
20
|
+
frac { '.' @digit+ }
|
|
21
|
+
exp { $[eE] $[+\-]? @digit+ }
|
|
22
|
+
|
|
23
|
+
string { '"' char* '"' }
|
|
24
|
+
char { $[\u{20}\u{21}\u{23}-\u{5b}\u{5d}-\u{10ffff}] | "\\" esc }
|
|
25
|
+
esc { $["\\\/bfnrt] | "u" hex hex hex hex }
|
|
26
|
+
hex { $[0-9a-fA-F] }
|
|
27
|
+
|
|
28
|
+
whitespace { $[ \n\r\t] }
|
|
29
|
+
|
|
30
|
+
"{" "}" "[" "]" "," ":"
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@skip { whitespace }
|
|
34
|
+
list<item> { item ("," item)* }
|
|
35
|
+
|
|
36
|
+
@external propSource jsonHighlighting from "./highlight"
|
|
37
|
+
|
|
38
|
+
@detectDelim
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// This file was generated by lezer-generator. You probably shouldn't edit it.
|
|
2
|
+
import {LRParser} from "@lezer/lr"
|
|
3
|
+
import {jsonHighlighting} from "./highlight"
|
|
4
|
+
export const parser = LRParser.deserialize({
|
|
5
|
+
version: 14,
|
|
6
|
+
states: "$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",
|
|
7
|
+
stateData: "#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",
|
|
8
|
+
goto: "!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",
|
|
9
|
+
nodeNames: "⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",
|
|
10
|
+
maxTerm: 25,
|
|
11
|
+
nodeProps: [
|
|
12
|
+
["isolate", -2,6,11,""],
|
|
13
|
+
["openedBy", 7,"{",14,"["],
|
|
14
|
+
["closedBy", 8,"}",15,"]"]
|
|
15
|
+
],
|
|
16
|
+
propSources: [jsonHighlighting],
|
|
17
|
+
skippedNodes: [0],
|
|
18
|
+
repeatNodeCount: 2,
|
|
19
|
+
tokenData: "(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",
|
|
20
|
+
tokenizers: [0],
|
|
21
|
+
topRules: {"JsonText":[0,1]},
|
|
22
|
+
tokenPrec: 0
|
|
23
|
+
})
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Empty Array
|
|
2
|
+
|
|
3
|
+
[ ]
|
|
4
|
+
|
|
5
|
+
==>
|
|
6
|
+
|
|
7
|
+
JsonText(Array)
|
|
8
|
+
|
|
9
|
+
# Array With One Value
|
|
10
|
+
|
|
11
|
+
["One is the loneliest number"]
|
|
12
|
+
|
|
13
|
+
==>
|
|
14
|
+
|
|
15
|
+
JsonText(Array(String))
|
|
16
|
+
|
|
17
|
+
# Array With Multiple Values
|
|
18
|
+
|
|
19
|
+
[
|
|
20
|
+
"The more the merrier",
|
|
21
|
+
1e5,
|
|
22
|
+
true,
|
|
23
|
+
{ },
|
|
24
|
+
["I'm", "nested"]
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
==>
|
|
28
|
+
|
|
29
|
+
JsonText(Array(
|
|
30
|
+
String,
|
|
31
|
+
Number,
|
|
32
|
+
True,
|
|
33
|
+
Object,
|
|
34
|
+
Array(String,String)))
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Simple Integer
|
|
2
|
+
|
|
3
|
+
42
|
|
4
|
+
|
|
5
|
+
==>
|
|
6
|
+
|
|
7
|
+
JsonText(Number)
|
|
8
|
+
|
|
9
|
+
# Zero By Itself Is Ok
|
|
10
|
+
|
|
11
|
+
0
|
|
12
|
+
|
|
13
|
+
==>
|
|
14
|
+
|
|
15
|
+
JsonText(Number)
|
|
16
|
+
|
|
17
|
+
# Leading Zeros Aren't Ok
|
|
18
|
+
|
|
19
|
+
[0123]
|
|
20
|
+
|
|
21
|
+
==>
|
|
22
|
+
|
|
23
|
+
JsonText(Array(Number, ⚠(Number)))
|
|
24
|
+
|
|
25
|
+
# Optional Minus Sign
|
|
26
|
+
|
|
27
|
+
-53
|
|
28
|
+
|
|
29
|
+
==>
|
|
30
|
+
|
|
31
|
+
JsonText(Number)
|
|
32
|
+
|
|
33
|
+
# Decimal Digits
|
|
34
|
+
|
|
35
|
+
123.4
|
|
36
|
+
|
|
37
|
+
==>
|
|
38
|
+
|
|
39
|
+
JsonText(Number)
|
|
40
|
+
|
|
41
|
+
# Must Have Digits After Decimal
|
|
42
|
+
|
|
43
|
+
123.
|
|
44
|
+
|
|
45
|
+
==>
|
|
46
|
+
|
|
47
|
+
JsonText(Number, ⚠)
|
|
48
|
+
|
|
49
|
+
# Exponent: Lowercase e
|
|
50
|
+
|
|
51
|
+
1e5
|
|
52
|
+
|
|
53
|
+
==>
|
|
54
|
+
|
|
55
|
+
JsonText(Number)
|
|
56
|
+
|
|
57
|
+
# Exponent: Uppercase E
|
|
58
|
+
|
|
59
|
+
1E5
|
|
60
|
+
|
|
61
|
+
==>
|
|
62
|
+
|
|
63
|
+
JsonText(Number)
|
|
64
|
+
|
|
65
|
+
# Exponent: Optional Plus Sign
|
|
66
|
+
|
|
67
|
+
1e+5
|
|
68
|
+
|
|
69
|
+
==>
|
|
70
|
+
|
|
71
|
+
JsonText(Number)
|
|
72
|
+
|
|
73
|
+
# Exponent: Optional Minus Sign
|
|
74
|
+
|
|
75
|
+
1E-5
|
|
76
|
+
|
|
77
|
+
==>
|
|
78
|
+
|
|
79
|
+
JsonText(Number)
|
|
80
|
+
|
|
81
|
+
# Exponent Without Digit Is Not Ok
|
|
82
|
+
|
|
83
|
+
42e
|
|
84
|
+
|
|
85
|
+
==>
|
|
86
|
+
|
|
87
|
+
JsonText(Number, ⚠)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Empty Object
|
|
2
|
+
|
|
3
|
+
{ }
|
|
4
|
+
|
|
5
|
+
==>
|
|
6
|
+
|
|
7
|
+
JsonText(Object)
|
|
8
|
+
|
|
9
|
+
# One Property
|
|
10
|
+
|
|
11
|
+
{
|
|
12
|
+
"foo": 123
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
==>
|
|
16
|
+
|
|
17
|
+
JsonText(Object(Property(PropertyName,Number)))
|
|
18
|
+
|
|
19
|
+
# Multiple Properties
|
|
20
|
+
|
|
21
|
+
{
|
|
22
|
+
"foo": 123,
|
|
23
|
+
"bar": "I'm a bar!",
|
|
24
|
+
"obj": {},
|
|
25
|
+
"arr": [1, 2, 3]
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
==>
|
|
29
|
+
|
|
30
|
+
JsonText(Object(
|
|
31
|
+
Property(PropertyName,Number),
|
|
32
|
+
Property(PropertyName,String),
|
|
33
|
+
Property(PropertyName,Object),
|
|
34
|
+
Property(PropertyName,Array(Number,Number,Number))))
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Empty String
|
|
2
|
+
|
|
3
|
+
""
|
|
4
|
+
|
|
5
|
+
==>
|
|
6
|
+
|
|
7
|
+
JsonText(String)
|
|
8
|
+
|
|
9
|
+
# Non-empty String
|
|
10
|
+
|
|
11
|
+
"This is a boring old string"
|
|
12
|
+
|
|
13
|
+
==>
|
|
14
|
+
|
|
15
|
+
JsonText(String)
|
|
16
|
+
|
|
17
|
+
# All The Valid One-Character Escapes
|
|
18
|
+
|
|
19
|
+
"\"\\\/\b\f\n\rt\t"
|
|
20
|
+
|
|
21
|
+
==>
|
|
22
|
+
|
|
23
|
+
JsonText(String)
|
|
24
|
+
|
|
25
|
+
# Unicode Escape
|
|
26
|
+
|
|
27
|
+
"\u005C"
|
|
28
|
+
|
|
29
|
+
==>
|
|
30
|
+
|
|
31
|
+
JsonText(String)
|
|
32
|
+
|
|
33
|
+
# XXX
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
"description": "Some description",
|
|
37
|
+
"keywords": [],
|
|
38
|
+
"author": "",
|
|
39
|
+
"license": "ISC",
|
|
40
|
+
"scripts": {
|
|
41
|
+
"test": "echo \"no test specified\" && exit 1"
|
|
42
|
+
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@lezer/common": "^1.2.1"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
==>
|
|
49
|
+
|
|
50
|
+
JsonText
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {parser} from '../dist/index.js'
|
|
2
|
+
import {fileTests} from '@lezer/generator/dist/test'
|
|
3
|
+
|
|
4
|
+
import fs from 'fs'
|
|
5
|
+
import path from 'path'
|
|
6
|
+
import {fileURLToPath} from "url"
|
|
7
|
+
let caseDir = path.dirname(fileURLToPath(import.meta.url))
|
|
8
|
+
|
|
9
|
+
for (let file of fs.readdirSync(caseDir)) {
|
|
10
|
+
if (file === 'test-json.js') continue
|
|
11
|
+
|
|
12
|
+
let name = /^[^\.]*/.exec(file)[0]
|
|
13
|
+
describe(name, () => {
|
|
14
|
+
for (let { name, run } of fileTests(fs.readFileSync(path.join(caseDir, file), "utf8"), file))
|
|
15
|
+
it(name, () => run(parser))
|
|
16
|
+
})
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# @lezer/lr
|
|
2
|
+
|
|
3
|
+
[ [**WEBSITE**](http://lezer.codemirror.net) | [**ISSUES**](https://github.com/lezer-parser/lezer/issues) | [**FORUM**](https://discuss.codemirror.net/c/lezer) | [**CHANGELOG**](https://github.com/lezer-parser/lr/blob/master/CHANGELOG.md) ]
|
|
4
|
+
|
|
5
|
+
Lezer ("reader" in Dutch, pronounced pretty much as laser) is an
|
|
6
|
+
incremental GLR parser intended for use in an editor or similar
|
|
7
|
+
system, which needs to keep a representation of the program current
|
|
8
|
+
during changes and in the face of syntax errors.
|
|
9
|
+
|
|
10
|
+
It prioritizes speed and compactness (both of parser table files and
|
|
11
|
+
of syntax tree) over having a highly usable parse tree—trees nodes are
|
|
12
|
+
just blobs with a start, end, tag, and set of child nodes, with no
|
|
13
|
+
further labeling of child nodes or extra metadata.
|
|
14
|
+
|
|
15
|
+
This package contains the run-time LR parser library. It consumes
|
|
16
|
+
parsers generated by
|
|
17
|
+
[@lezer/generator](https://github.com/lezer-parser/generator).
|
|
18
|
+
|
|
19
|
+
The parser programming interface is documented on [the
|
|
20
|
+
website](https://lezer.codemirror.net/docs/ref/#lr).
|
|
21
|
+
|
|
22
|
+
The code is licensed under an MIT license.
|
|
23
|
+
|
|
24
|
+
This project was hugely inspired by
|
|
25
|
+
[tree-sitter](http://tree-sitter.github.io/tree-sitter/).
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export declare const enum Action {
|
|
2
|
+
ReduceFlag = 65536,
|
|
3
|
+
ValueMask = 65535,
|
|
4
|
+
ReduceDepthShift = 19,
|
|
5
|
+
RepeatFlag = 131072,
|
|
6
|
+
GotoFlag = 131072,
|
|
7
|
+
StayFlag = 262144
|
|
8
|
+
}
|
|
9
|
+
export declare const enum StateFlag {
|
|
10
|
+
Skipped = 1,
|
|
11
|
+
Accepting = 2
|
|
12
|
+
}
|
|
13
|
+
export declare const enum Specialize {
|
|
14
|
+
Specialize = 0,
|
|
15
|
+
Extend = 1
|
|
16
|
+
}
|
|
17
|
+
export declare const enum Term {
|
|
18
|
+
Err = 0
|
|
19
|
+
}
|
|
20
|
+
export declare const enum Seq {
|
|
21
|
+
End = 65535,
|
|
22
|
+
Done = 0,
|
|
23
|
+
Next = 1,
|
|
24
|
+
Other = 2
|
|
25
|
+
}
|
|
26
|
+
export declare const enum ParseState {
|
|
27
|
+
Flags = 0,
|
|
28
|
+
Actions = 1,
|
|
29
|
+
Skip = 2,
|
|
30
|
+
TokenizerMask = 3,
|
|
31
|
+
DefaultReduce = 4,
|
|
32
|
+
ForcedReduce = 5,
|
|
33
|
+
Size = 6
|
|
34
|
+
}
|
|
35
|
+
export declare const enum Encode {
|
|
36
|
+
BigValCode = 126,
|
|
37
|
+
BigVal = 65535,
|
|
38
|
+
Start = 32,
|
|
39
|
+
Gap1 = 34,
|
|
40
|
+
Gap2 = 92,
|
|
41
|
+
Base = 46
|
|
42
|
+
}
|
|
43
|
+
export declare const enum File {
|
|
44
|
+
Version = 14
|
|
45
|
+
}
|