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,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lezer/highlight",
|
|
3
|
+
"version": "1.2.3",
|
|
4
|
+
"description": "Highlighting system for Lezer parse trees",
|
|
5
|
+
"main": "dist/index.cjs",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
"import": "./dist/index.js",
|
|
9
|
+
"require": "./dist/index.cjs"
|
|
10
|
+
},
|
|
11
|
+
"module": "dist/index.js",
|
|
12
|
+
"types": "dist/index.d.ts",
|
|
13
|
+
"author": "Marijn Haverbeke <marijn@haverbeke.berlin>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@marijn/buildtool": "0.1.3",
|
|
17
|
+
"typescript": "^5.0.0"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@lezer/common": "^1.3.0"
|
|
21
|
+
},
|
|
22
|
+
"files": ["dist"],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type" : "git",
|
|
25
|
+
"url" : "https://github.com/lezer-parser/highlight.git"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"watch": "node build.js --watch",
|
|
29
|
+
"prepare": "node build.js"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
## 1.3.13 (2025-12-22)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Set the `bracketed` flag for nested parses inside quotes or tags.
|
|
6
|
+
|
|
7
|
+
## 1.3.12 (2025-09-26)
|
|
8
|
+
|
|
9
|
+
### Bug fixes
|
|
10
|
+
|
|
11
|
+
Emit tokens for `<` characters without tag name, so that autocompletion can work with them.
|
|
12
|
+
|
|
13
|
+
## 1.3.11 (2025-09-25)
|
|
14
|
+
|
|
15
|
+
### Bug fixes
|
|
16
|
+
|
|
17
|
+
Don't parse `<` followed by whitespace as the start of a tag.
|
|
18
|
+
|
|
19
|
+
## 1.3.10 (2024-05-29)
|
|
20
|
+
|
|
21
|
+
### Bug fixes
|
|
22
|
+
|
|
23
|
+
Fix an issue that broke attribute reading when defining a nested language on a tag that isn't a `style`, `textearea`, or `script` tag.
|
|
24
|
+
|
|
25
|
+
## 1.3.9 (2024-02-21)
|
|
26
|
+
|
|
27
|
+
### Bug fixes
|
|
28
|
+
|
|
29
|
+
When using the "selfClosing" dialect, fix parse errors for `<br/>` (tags that implicitly self-close) and `<script/>` (special tags).
|
|
30
|
+
|
|
31
|
+
## 1.3.8 (2023-12-28)
|
|
32
|
+
|
|
33
|
+
### Bug fixes
|
|
34
|
+
|
|
35
|
+
Add `bidiIsolate` node props for tags, comments, and attributes.
|
|
36
|
+
|
|
37
|
+
Mark tags, attributes, and comments as isolating for bidirectional text.
|
|
38
|
+
|
|
39
|
+
## 1.3.7 (2023-11-23)
|
|
40
|
+
|
|
41
|
+
### Bug fixes
|
|
42
|
+
|
|
43
|
+
Fix a bug that caused the parser to not properly recognize empty HTML comments. Don't emit nested parses for empty elements in configureNesting
|
|
44
|
+
|
|
45
|
+
Fix an issue where `configureNesting` could emit empty overlay ranges for empty elements.
|
|
46
|
+
|
|
47
|
+
## 1.3.6 (2023-07-12)
|
|
48
|
+
|
|
49
|
+
### Bug fixes
|
|
50
|
+
|
|
51
|
+
Improve parsing of multiple unfinished opening tags by disallowing less-than characters in attribute names.
|
|
52
|
+
|
|
53
|
+
## 1.3.5 (2023-07-03)
|
|
54
|
+
|
|
55
|
+
### Bug fixes
|
|
56
|
+
|
|
57
|
+
Make the package work with new TS resolution styles.
|
|
58
|
+
|
|
59
|
+
## 1.3.4 (2023-03-27)
|
|
60
|
+
|
|
61
|
+
### Bug fixes
|
|
62
|
+
|
|
63
|
+
Fix a bug that caused mixed parsing of non-style/script elements to attach the nested parse tree to the incorrect node.
|
|
64
|
+
|
|
65
|
+
## 1.3.3 (2023-02-21)
|
|
66
|
+
|
|
67
|
+
### Bug fixes
|
|
68
|
+
|
|
69
|
+
Make sure build output is strictly ES6 again.
|
|
70
|
+
|
|
71
|
+
## 1.3.2 (2023-02-16)
|
|
72
|
+
|
|
73
|
+
### Bug fixes
|
|
74
|
+
|
|
75
|
+
Fix a crash caused by nexted parsing of attributes returning invalid ranges for attributes missing their closing quote.
|
|
76
|
+
|
|
77
|
+
## 1.3.1 (2023-02-11)
|
|
78
|
+
|
|
79
|
+
### Bug fixes
|
|
80
|
+
|
|
81
|
+
Always allow self-closing tags in `<svg>` and `<math>` tags.
|
|
82
|
+
|
|
83
|
+
## 1.3.0 (2022-12-16)
|
|
84
|
+
|
|
85
|
+
### New features
|
|
86
|
+
|
|
87
|
+
`configureNesting` now supports targeting tags other than `style`, `script`, and `textarea`.
|
|
88
|
+
|
|
89
|
+
## 1.2.0 (2022-11-25)
|
|
90
|
+
|
|
91
|
+
### New features
|
|
92
|
+
|
|
93
|
+
`configureNesting` now takes a second argument that can be used to specify that the value of some attributes should be parsed with an external parser.
|
|
94
|
+
|
|
95
|
+
## 1.1.1 (2022-11-18)
|
|
96
|
+
|
|
97
|
+
### Bug fixes
|
|
98
|
+
|
|
99
|
+
Align allowed characters in unquoted attribute values with the spec. Replace another unicode escape with a character
|
|
100
|
+
|
|
101
|
+
## 1.1.0 (2022-11-16)
|
|
102
|
+
|
|
103
|
+
### Bug fixes
|
|
104
|
+
|
|
105
|
+
Allow more characters in attribute names, following HTML spec.
|
|
106
|
+
|
|
107
|
+
### New features
|
|
108
|
+
|
|
109
|
+
The new `"selfClosing"` dialect allows `/>` syntax to be used to create self-closing tags.
|
|
110
|
+
|
|
111
|
+
## 1.0.1 (2022-07-27)
|
|
112
|
+
|
|
113
|
+
### Bug fixes
|
|
114
|
+
|
|
115
|
+
Continue parsing when an invalid entity reference appears in an attribute value.
|
|
116
|
+
|
|
117
|
+
## 1.0.0 (2022-06-06)
|
|
118
|
+
|
|
119
|
+
### New features
|
|
120
|
+
|
|
121
|
+
First stable version.
|
|
122
|
+
|
|
123
|
+
## 0.16.1 (2022-05-16)
|
|
124
|
+
|
|
125
|
+
### Bug fixes
|
|
126
|
+
|
|
127
|
+
Fix a bug where comment end tokens preceded by dashes were sometimes not recognized.
|
|
128
|
+
|
|
129
|
+
## 0.16.0 (2022-04-20)
|
|
130
|
+
|
|
131
|
+
### Breaking changes
|
|
132
|
+
|
|
133
|
+
Move to 0.16 serialized parser format.
|
|
134
|
+
|
|
135
|
+
### New features
|
|
136
|
+
|
|
137
|
+
The parser now includes syntax highlighting information in its node types.
|
|
138
|
+
|
|
139
|
+
## 0.15.1 (2022-02-16)
|
|
140
|
+
|
|
141
|
+
### Bug fixes
|
|
142
|
+
|
|
143
|
+
Make sure the tree for unfinished self-closing tags shows them as self-closing.
|
|
144
|
+
|
|
145
|
+
## 0.15.0 (2021-08-11)
|
|
146
|
+
|
|
147
|
+
### Breaking changes
|
|
148
|
+
|
|
149
|
+
The module's name changed from `lezer-html` to `@lezer/html`.
|
|
150
|
+
|
|
151
|
+
Upgrade to the 0.15.0 lezer interfaces.
|
|
152
|
+
|
|
153
|
+
## 0.13.6 (2021-06-16)
|
|
154
|
+
|
|
155
|
+
### Bug fixes
|
|
156
|
+
|
|
157
|
+
Add a rule for invalid `&` syntax to avoid error-recovery around stray ampersands.
|
|
158
|
+
|
|
159
|
+
## 0.13.5 (2021-05-05)
|
|
160
|
+
|
|
161
|
+
### Bug fixes
|
|
162
|
+
|
|
163
|
+
Fix a problem where like attributes inappropriately included trailing whitespace.
|
|
164
|
+
|
|
165
|
+
## 0.13.4 (2021-03-10)
|
|
166
|
+
|
|
167
|
+
### Bug fixes
|
|
168
|
+
|
|
169
|
+
Strip quotes from attribute values passed to `attrs` predicates in `configureNesting`.
|
|
170
|
+
|
|
171
|
+
## 0.13.3 (2021-02-17)
|
|
172
|
+
|
|
173
|
+
### Bug fixes
|
|
174
|
+
|
|
175
|
+
Optimize the tokenizer by using a context tracker.
|
|
176
|
+
|
|
177
|
+
## 0.13.2 (2021-01-22)
|
|
178
|
+
|
|
179
|
+
### Bug fixes
|
|
180
|
+
|
|
181
|
+
Make comments consist of multiple tokens, so that huge comments don't freeze the parser.
|
|
182
|
+
|
|
183
|
+
## 0.13.1 (2020-12-04)
|
|
184
|
+
|
|
185
|
+
### Bug fixes
|
|
186
|
+
|
|
187
|
+
Fix versions of lezer packages depended on.
|
|
188
|
+
|
|
189
|
+
## 0.13.0 (2020-12-04)
|
|
190
|
+
|
|
191
|
+
### Breaking changes
|
|
192
|
+
|
|
193
|
+
The nested parser configuration utility is now called `configureNesting`, and returns an object to pass to `Parser.configure`'s `nested` option instead of a new parser.
|
|
194
|
+
|
|
195
|
+
### New features
|
|
196
|
+
|
|
197
|
+
The parser can now be given a "noMatch" dialect to not mark mismatched tags.
|
|
198
|
+
|
|
199
|
+
## 0.12.0 (2020-10-23)
|
|
200
|
+
|
|
201
|
+
### Breaking changes
|
|
202
|
+
|
|
203
|
+
Adjust to changed serialized parser format.
|
|
204
|
+
|
|
205
|
+
### New features
|
|
206
|
+
|
|
207
|
+
The parser now more effectively matches close and open tags, even in the presence of mismatched tags.
|
|
208
|
+
|
|
209
|
+
## 0.11.1 (2020-09-26)
|
|
210
|
+
|
|
211
|
+
### Bug fixes
|
|
212
|
+
|
|
213
|
+
Fix lezer depencency versions
|
|
214
|
+
|
|
215
|
+
## 0.11.0 (2020-09-26)
|
|
216
|
+
|
|
217
|
+
### Breaking changes
|
|
218
|
+
|
|
219
|
+
Follow change in serialized parser format.
|
|
220
|
+
|
|
221
|
+
## 0.10.0 (2020-08-07)
|
|
222
|
+
|
|
223
|
+
### Breaking changes
|
|
224
|
+
|
|
225
|
+
Upgrade to 0.10 parser serialization
|
|
226
|
+
|
|
227
|
+
## 0.9.0 (2020-06-08)
|
|
228
|
+
|
|
229
|
+
### Breaking changes
|
|
230
|
+
|
|
231
|
+
Upgrade to 0.9 parser serialization
|
|
232
|
+
|
|
233
|
+
### New features
|
|
234
|
+
|
|
235
|
+
Tag start/end tokens now have `NodeProp.openedBy`/`closedBy` props.
|
|
236
|
+
|
|
237
|
+
## 0.8.4 (2020-04-09)
|
|
238
|
+
|
|
239
|
+
### Bug fixes
|
|
240
|
+
|
|
241
|
+
Regenerate parser with a fix in lezer-generator so that the top node prop is properly assigned.
|
|
242
|
+
|
|
243
|
+
## 0.8.3 (2020-04-01)
|
|
244
|
+
|
|
245
|
+
### Bug fixes
|
|
246
|
+
|
|
247
|
+
Make the package load as an ES module on node
|
|
248
|
+
|
|
249
|
+
## 0.8.2 (2020-02-28)
|
|
250
|
+
|
|
251
|
+
### New features
|
|
252
|
+
|
|
253
|
+
Provide an ES module file.
|
|
254
|
+
|
|
255
|
+
## 0.8.1 (2020-02-26)
|
|
256
|
+
|
|
257
|
+
### Bug fixes
|
|
258
|
+
|
|
259
|
+
Adds support for single-quoted attribute values.
|
|
260
|
+
|
|
261
|
+
Don't treat /> tag ends as self-closing, just ignore them instead.
|
|
262
|
+
|
|
263
|
+
## 0.8.0 (2020-02-03)
|
|
264
|
+
|
|
265
|
+
### New features
|
|
266
|
+
|
|
267
|
+
Follow 0.8.0 release of the library.
|
|
268
|
+
|
|
269
|
+
## 0.7.0 (2020-01-20)
|
|
270
|
+
|
|
271
|
+
### Breaking changes
|
|
272
|
+
|
|
273
|
+
Use the lezer 0.7.0 parser format.
|
|
274
|
+
|
|
275
|
+
## 0.5.2 (2020-01-15)
|
|
276
|
+
|
|
277
|
+
### Bug fixes
|
|
278
|
+
|
|
279
|
+
Allow whitespace between the `<` and `/` in a close tag.
|
|
280
|
+
|
|
281
|
+
## 0.5.1 (2019-10-22)
|
|
282
|
+
|
|
283
|
+
### Bug fixes
|
|
284
|
+
|
|
285
|
+
Fix top prop missing from build output.
|
|
286
|
+
|
|
287
|
+
## 0.5.0 (2019-10-22)
|
|
288
|
+
|
|
289
|
+
### Breaking changes
|
|
290
|
+
|
|
291
|
+
Move from `lang` to `top` prop on document node.
|
|
292
|
+
|
|
293
|
+
## 0.4.0 (2019-09-10)
|
|
294
|
+
|
|
295
|
+
### Breaking changes
|
|
296
|
+
|
|
297
|
+
Adjust to 0.4.0 parse table format.
|
|
298
|
+
|
|
299
|
+
## 0.3.0 (2019-08-22)
|
|
300
|
+
|
|
301
|
+
### New features
|
|
302
|
+
|
|
303
|
+
First numbered release.
|
|
@@ -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,37 @@
|
|
|
1
|
+
# @lezer/html
|
|
2
|
+
|
|
3
|
+
This is an HTML grammar for the
|
|
4
|
+
[lezer](https://lezer.codemirror.net/) parser system.
|
|
5
|
+
|
|
6
|
+
The code is licensed under an MIT license.
|
|
7
|
+
|
|
8
|
+
## Interface
|
|
9
|
+
|
|
10
|
+
This package exports two bindings:
|
|
11
|
+
|
|
12
|
+
**`parser`**`: Parser`
|
|
13
|
+
|
|
14
|
+
The parser instance for the basic HTML grammar. Supports two dialects:
|
|
15
|
+
|
|
16
|
+
- `"noMatch"` turns off tag matching, creating regular syntax nodes
|
|
17
|
+
even for mismatched tags.
|
|
18
|
+
|
|
19
|
+
- `"selfClosing"` adds support for `/>` self-closing tag syntax.
|
|
20
|
+
|
|
21
|
+
**`configureNesting`**`(tags?: {`\
|
|
22
|
+
` tag: string,`\
|
|
23
|
+
` attrs?: (attrs: {[attr: string]: string}) => boolean,`\
|
|
24
|
+
` parser: Parser,`\
|
|
25
|
+
`}[], attributes?: {`\
|
|
26
|
+
` name: string,`\
|
|
27
|
+
` tagName?: string,`\
|
|
28
|
+
` parser: Parser,`\
|
|
29
|
+
`}[]): ParseWrapper`
|
|
30
|
+
|
|
31
|
+
Create a nested parser config object which overrides the way the
|
|
32
|
+
content of some tags or attributes is parsed. Each tag override is an
|
|
33
|
+
object with a `tag` property holding the (lower case) tag name to
|
|
34
|
+
override, and an optional `attrs` predicate that, if given, has to
|
|
35
|
+
return true for the tag's attributes for this override to apply.
|
|
36
|
+
|
|
37
|
+
The `parser` property describes the way the tag's content is parsed.
|