{"_id":"@boundaryml/baml-lezer","_rev":"3-5a740c15040079630475f3ffe9a89f50","name":"@boundaryml/baml-lezer","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@boundaryml/baml-lezer","version":"0.1.0","license":"MIT","_id":"@boundaryml/baml-lezer@0.1.0","maintainers":[{"name":"sxlijin","email":"npmjs@sxlijin.com"},{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},{"name":"aaronvg","email":"aaron@gloo.chat"}],"dist":{"shasum":"2ac83c2b25b7dea7e871d0c570bc66a30825c66c","tarball":"https://registry.npmjs.org/@boundaryml/baml-lezer/-/baml-lezer-0.1.0.tgz","fileCount":11,"integrity":"sha512-b2Yd8P1tPzPPait4S3vG7GiqFg0LL4guWtI0NKBkwAJyJdwKBLyNKGnBVuny5UKUejNzkEKomRgrE6CMl0isuw==","signatures":[{"sig":"MEQCIDUJHG5Fpx9csw+HCewRsgt96wzTQQxomuzjhc/VLQ+IAiA606wJnXY+t5wtMqBegpUFygAAOY3FH8xUJtKdrn0OHQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":60143},"main":"dist/index.cjs","type":"module","_from":"file:boundaryml-baml-lezer-0.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"aaronvg","email":"aaron@gloo.chat"},"_resolved":"/private/var/folders/j1/hfmhf1496vv29mng9yq7wmy80000gn/T/b5045b165927e44cbd4e0aee1c5a897c/boundaryml-baml-lezer-0.1.0.tgz","_integrity":"sha512-b2Yd8P1tPzPPait4S3vG7GiqFg0LL4guWtI0NKBkwAJyJdwKBLyNKGnBVuny5UKUejNzkEKomRgrE6CMl0isuw==","_npmVersion":"10.2.4","description":"BAML language support for CodeMirror","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"@lezer/lr":"^1.0.0","@lezer/common":"^1.2.1","@lezer/highlight":"^1.0.0","@codemirror/language":"^6.0.0","@codemirror/autocomplete":"^6.15.0","@codemirror/legacy-modes":"^6.4.0","@uiw/codemirror-theme-vscode":"^4.21.25"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.0.1","rollup":"^2.60.2","typescript":"^4.3.4","@types/webpack":"^5.28.5","@lezer/generator":"^1.0.0","@types/uglify-js":"^3.17.5","rollup-plugin-ts":"^3.0.2","rollup-plugin-dts":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/baml-lezer_0.1.0_1721611067644_0.5792090736122479","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@boundaryml/baml-lezer","version":"0.1.1","license":"MIT","_id":"@boundaryml/baml-lezer@0.1.1","maintainers":[{"name":"sxlijin","email":"npmjs@sxlijin.com"},{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},{"name":"aaronvg","email":"aaron@gloo.chat"}],"dist":{"shasum":"37af34fd3d15477a7e0b7b896c8b24f630ac94e9","tarball":"https://registry.npmjs.org/@boundaryml/baml-lezer/-/baml-lezer-0.1.1.tgz","fileCount":11,"integrity":"sha512-3aJE0jdSGOtxLQZQf5dLjra5mXchmuKBpwiUc6DHcI3Z3N0xsSDYbaSaTj34g4QaYTcyV+OmgNANWNurLjRySw==","signatures":[{"sig":"MEYCIQCqtPBHu/AL32gCjwtZKxZ2eoSP3bAvdO1KfyYuYSSwnAIhAKemj48ER9F8RyfH5gqu/YQHBme7qagYlGyjqVNzJpC5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59887},"main":"dist/index.cjs","type":"module","_from":"file:boundaryml-baml-lezer-0.1.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"aaronvg","email":"aaron@gloo.chat"},"_resolved":"/private/var/folders/j1/hfmhf1496vv29mng9yq7wmy80000gn/T/5c442b74604d54eea99dfca3c6c63dab/boundaryml-baml-lezer-0.1.1.tgz","_integrity":"sha512-3aJE0jdSGOtxLQZQf5dLjra5mXchmuKBpwiUc6DHcI3Z3N0xsSDYbaSaTj34g4QaYTcyV+OmgNANWNurLjRySw==","_npmVersion":"10.2.4","description":"BAML language support for CodeMirror","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"@lezer/lr":"^1.0.0","@lezer/common":"^1.2.1","@lezer/highlight":"^1.0.0","@codemirror/language":"^6.0.0","@codemirror/autocomplete":"^6.15.0","@codemirror/legacy-modes":"^6.4.0","@uiw/codemirror-theme-vscode":"^4.21.25"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.0.1","rollup":"^2.60.2","typescript":"^4.3.4","@types/webpack":"^5.28.5","@lezer/generator":"^1.0.0","@types/uglify-js":"^3.17.5","rollup-plugin-ts":"^3.0.2","rollup-plugin-dts":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/baml-lezer_0.1.1_1721611232078_0.5770435939433238","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@boundaryml/baml-lezer","version":"0.1.2","license":"MIT","_id":"@boundaryml/baml-lezer@0.1.2","maintainers":[{"name":"sxlijin","email":"npmjs@sxlijin.com"},{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},{"name":"aaronvg","email":"aaron@gloo.chat"}],"dist":{"shasum":"f6ee99793998c39cf19cd61677b4b9d59e68bdd2","tarball":"https://registry.npmjs.org/@boundaryml/baml-lezer/-/baml-lezer-0.1.2.tgz","fileCount":11,"integrity":"sha512-D5/4Mo2DY9F3Lpxxd2DtAghr9Md4twXRQaSFbEFiTMdXDHKZDD8foRasKJWpuDnYlrsdrj8n8mfLZjoc37/9oA==","signatures":[{"sig":"MEUCIElX1dig2IiFpo2adK4U1+3idIpkxb20UR8wowVlbeM0AiEApArCFxuhp+FH154eYh12mj8WFSOT/MJp0ym/34/DOnA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":61307},"main":"dist/index.cjs","type":"module","_from":"file:boundaryml-baml-lezer-0.1.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"scripts":{"test":"mocha test/test.js"},"_npmUser":{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},"_resolved":"/private/var/folders/j1/hfmhf1496vv29mng9yq7wmy80000gn/T/0d4606ff1d5b7c6dc33de3917efbb5fd/boundaryml-baml-lezer-0.1.2.tgz","_integrity":"sha512-D5/4Mo2DY9F3Lpxxd2DtAghr9Md4twXRQaSFbEFiTMdXDHKZDD8foRasKJWpuDnYlrsdrj8n8mfLZjoc37/9oA==","_npmVersion":"10.2.4","description":"BAML language support for CodeMirror","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"@lezer/lr":"^1.0.0","@lezer/common":"^1.2.1","@lezer/highlight":"^1.0.0","@codemirror/language":"^6.0.0","@codemirror/autocomplete":"^6.15.0","@codemirror/legacy-modes":"^6.4.0","@uiw/codemirror-theme-vscode":"^4.21.25"},"_hasShrinkwrap":false,"devDependencies":{"mocha":"^9.0.1","rollup":"^2.60.2","typescript":"^4.3.4","@types/webpack":"^5.28.5","@lezer/generator":"^1.0.0","@types/uglify-js":"^3.17.5","rollup-plugin-ts":"^3.0.2","rollup-plugin-dts":"^4.0.1"},"_npmOperationalInternal":{"tmp":"tmp/baml-lezer_0.1.2_1730929815626_0.44223732921699943","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@boundaryml/baml-lezer","version":"0.1.3","description":"BAML language support for CodeMirror","scripts":{"test":"mocha test/test.js","prepare":"rollup -c"},"type":"module","main":"dist/index.cjs","module":"dist/index.js","exports":{"import":"./dist/index.js","require":"./dist/index.cjs"},"types":"dist/index.d.ts","sideEffects":false,"dependencies":{"@codemirror/autocomplete":"^6.15.0","@codemirror/language":"^6.0.0","@codemirror/legacy-modes":"^6.4.0","@lezer/common":"^1.2.1","@lezer/highlight":"^1.0.0","@lezer/lr":"^1.0.0","@uiw/codemirror-theme-vscode":"^4.21.25"},"devDependencies":{"@lezer/generator":"^1.0.0","@types/uglify-js":"^3.17.5","@types/webpack":"^5.28.5","mocha":"^9.0.1","rollup":"^2.60.2","rollup-plugin-dts":"^4.0.1","rollup-plugin-ts":"^3.0.2","typescript":"^4.3.4"},"license":"MIT","_id":"@boundaryml/baml-lezer@0.1.3","gitHead":"7c89dcb7740d4aff6e0b70b16c7b4d63335d54d7","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-UtUPeVzJaY7+oX6XhQ7mgFf7zMAlqZr5mC1Uru1l0bq9kGnCC0At8XHl0wA6kdY8vUK4SeciAxZGLuc/W0Rz3g==","shasum":"78a869177723576df2b62143bf2de42d5f55d9ca","tarball":"https://registry.npmjs.org/@boundaryml/baml-lezer/-/baml-lezer-0.1.3.tgz","fileCount":11,"unpackedSize":52670,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAfwVY8Zcu/Sn49byfnWu6JavxEiAuvljLSxDHkf8U5+AiEAmVs9e6oycjd9DlfZsCScCsi22LdSzbihFIFmmdWMFWU="}]},"_npmUser":{"name":"aaronvg","email":"aaron@gloo.chat"},"directories":{},"maintainers":[{"name":"aaronvg","email":"aaron@gloo.chat"},{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},{"name":"sxlijin","email":"npmjs@sxlijin.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/baml-lezer_0.1.3_1732730028727_0.9561450632275446"},"_hasShrinkwrap":false}},"time":{"created":"2024-07-22T01:17:47.526Z","modified":"2024-11-27T17:53:49.094Z","0.1.0":"2024-07-22T01:17:47.843Z","0.1.1":"2024-07-22T01:20:32.286Z","0.1.2":"2024-11-06T21:50:15.806Z","0.1.3":"2024-11-27T17:53:48.901Z"},"license":"MIT","description":"BAML language support for CodeMirror","maintainers":[{"name":"aaronvg","email":"aaron@gloo.chat"},{"name":"hellovai-boundary","email":"vbv@boundaryml.com"},{"name":"sxlijin","email":"npmjs@sxlijin.com"}],"readme":"## test this in lezer-playground.vercel.app\n\nAdd this to the end of the grammar:\n@detectDelim\n@external propSource jsonHighlighting from \"./highlight\"\n\nThe highlighting stuff (udpate this with the new highlighter file)\n\n```\nimport { styleTags, tags as t } from \"@lezer/highlight\";\n\nexport const jsonHighlighting = styleTags({\n // String: t.string,\n\t\"ClassDecl\": t.keyword,\n\t\"ClassDecl/IdentifierDecl\": t.name,\n\t\"TestDecl/IdentifierDecl\": t.name,\n\t\"ClassField/IdentifierDecl\": t.propertyName,\n\t\"SimpleTypeExpr/IdentifierDecl\": t.name,\n\tPromptExpr: t.string,\n\t\"FieldAttribute/...\": t.annotation,\n\t\"FieldAttribute/LiteralDecl\": t.string,\n\t\"EnumDecl/IdentifierDecl\": t.name,\n\t\"EnumDecl\": t.keyword,\n\t\"BlockAttribute/...\": t.annotation,\n\t\"BlockAttribute/LiteralDecl\": t.string,\n\t\"EnumValueDecl/IdentifierDecl\": t.propertyName,\n\t\"MultilineComment\": t.comment,\n\t\"FunctionDecl\": t.keyword,\n\t\"IdentifierDecl\": t.name,\n\n\t//IdentifierDecl: t.variable,\n  Number: t.number,\n  \"True False\": t.bool,\n  PropertyName: t.propertyName,\n  Null: t.null,\n  \",\": t.separator,\n  \"[ ]\": t.squareBracket,\n  \"{ }\": t.brace,\n});\n\n// A very dim/dull syntax highlighting so you have something to look at, but also to trigger you to write your own ;)\n// Also shows that you can use `export let extension = [...]`, to add extensions to the \"demo text\" editor.\nimport { HighlightStyle, syntaxHighlighting } from \"@codemirror/language\";\nconst syntax_colors = syntaxHighlighting(\n  HighlightStyle.define(\n    [\n\t\t\t      { tag: t.brace, color: \"#a8a8a8\" },\n\t\t\t      { tag: t.annotation, color: \"#a8a8a8\" },\n\n      { tag: t.name, color: \"#a8a8a8\" },\n      { tag: t.propertyName, color: \"#966a6a\" },\n      { tag: t.comment, color: \"#4b4949\" },\n      { tag: t.atom, color: \"#a25496\" },\n\n      { tag: t.literal, color: \"#7b87b8\" },\n      { tag: t.unit, color: \"#7b87b8\" },\n      { tag: t.null, color: \"#7b87b8\" },\n\n      { tag: t.keyword, color: \"#585858\" },\n      { tag: t.punctuation, color: \"#585858\" },\n      { tag: t.derefOperator, color: \"#585858\" },\n      { tag: t.special(t.brace), fontWeight: 700 },\n\n      { tag: t.operator, color: \"white\" },\n      { tag: t.self, color: \"white\" },\n      { tag: t.function(t.punctuation), color: \"white\" },\n      { tag: t.special(t.logicOperator), color: \"white\", fontWeight: \"bold\" },\n      { tag: t.moduleKeyword, color: \"white\", fontWeight: \"bold\" },\n      { tag: t.controlKeyword, color: \"white\", fontWeight: \"bold\" },\n      { tag: t.controlOperator, color: \"white\", fontWeight: \"bold\" },\n    ],\n    { all: { color: \"#585858\" } }\n  )\n);\n\nexport let extensions = [syntax_colors];\n```\n","readmeFilename":"README.md"}