Hey there, I was wondering if anyone is working on a Lua plugin for Lezer yet?
Not that I know of. If you want to tackle it an need any advice, let me know.
EDIT: figured out the indention issue (using indentOnInput
). Will post any progress on the plugin in this thread
I started to write a language plugin for lua based on lezer and this grammar for lua: GitHub - R167/lezer-lua: Lezer-based parser for Lua
But this is my first time writing a language plugin. Im stuck right now with this:
I want to indent blocks just like the @codemirror/lang-javascript
does, but I cant get it to not indent the closing end
. This is what i tried so far:
indentNodeProp.add({
Block: delimitedIndent({ closing: 'end' }),
}),
Any ideas?