{"_id":"@cookshack/codemirror-lang-lezer-tree","name":"@cookshack/codemirror-lang-lezer-tree","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@cookshack/codemirror-lang-lezer-tree","version":"0.1.0","description":"Language support for Lezer trees","homepage":"https://git.sr.ht/~mattmundell/codemirror-lang-lezer-tree","scripts":{"check":"./node_modules/@cookshack/build/bin/check *.js src/*.js","prepare":"./node_modules/@cookshack/build/bin/prepare","test":"mocha test/test.js"},"repository":{"type":"git","url":"git+https://git.sr.ht/~mattmundell/codemirror-lang-lezer-tree"},"type":"module","main":"dist/index.cjs","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"sideEffects":false,"dependencies":{"@codemirror/language":"^6.0.0","@lezer/highlight":"^1.0.0","@lezer/lr":"^1.0.0"},"devDependencies":{"@cookshack/build":"^0.2.0","@cookshack/eslint-config":"^0.1.6","@lezer/generator":"^1.0.0","@rollup/plugin-node-resolve":"^15.2.3","husky":"^9.1.7","lezer-utils":"^0.2.0","mocha":"^10.8.2","rollup":"^4.28.0"},"license":"MIT","_id":"@cookshack/codemirror-lang-lezer-tree@0.1.0","gitHead":"f265245a547cdac4ec16592825b9992a71e2b822","_nodeVersion":"20.15.1","_npmVersion":"10.9.1","dist":{"integrity":"sha512-xfSp32zKzlgfLqQI9IDpPBGkjgTcsozuiH5Xuo9feJeeTn+tiyvItrMrIQJV4nxMG13EvjlaC8OQOa74wSP2OQ==","shasum":"72665620bc9b0c269ec1818e92cbc609ecfb764a","tarball":"https://registry.npmjs.org/@cookshack/codemirror-lang-lezer-tree/-/codemirror-lang-lezer-tree-0.1.0.tgz","fileCount":31,"unpackedSize":16932,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD++QntteHP4mS9QOd+0WwDHJP5ORaOhH/PR2pChQFHwIhAJsiuW5sVaArNfY1tPZTde5WLKArhNCWwcVL3Rmxg26C"}]},"_npmUser":{"name":"mattmundell","email":"matt@mundell.me"},"directories":{},"maintainers":[{"name":"mattmundell","email":"matt@mundell.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/codemirror-lang-lezer-tree_0.1.0_1733155020025_0.8167379937049961"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-02T15:56:59.933Z","0.1.0":"2024-12-02T15:57:00.180Z","modified":"2024-12-02T15:57:00.500Z"},"maintainers":[{"name":"mattmundell","email":"matt@mundell.me"}],"description":"Language support for Lezer trees","homepage":"https://git.sr.ht/~mattmundell/codemirror-lang-lezer-tree","repository":{"type":"git","url":"git+https://git.sr.ht/~mattmundell/codemirror-lang-lezer-tree"},"license":"MIT","readme":"# @cookshack/codemirror-lang-lezer-tree\n\nLanguage support for Lezer trees (.leztree files), for CodeMirror 6.\n\nThe format of these Lezer trees is like\n```\nScript(LineComment,\n       VariableDeclaration(let,\n                           VariableDefinition,\n                           Equals,\n                           Number),\n       ExpressionStatement(AssignmentExpression(VariableName,\n                                                UpdateOp,\n                                                Number)),\n       ExpressionStatement(CallExpression(MemberExpression(VariableName,\n                                                           .,\n                                                           PropertyName),\n                                          ArgList(\\(,\n                                                  VariableName,\n                                                  \\)))))\n```\nas produced by the exported function `pretty`.\n\nThe idea is to have syntax highlighting of syntax trees within the editor, to help while developing Lezer grammars for other languages. See `A-x Syntax Tree` in [Bred](https://git.sr.ht/~mattmundell/bred).\n","readmeFilename":"README.md"}