4 ms·
Great! I remember last time I looked at Vis it wasn't so far along (it had no Lua integration AFAIK). When I started submitting code to Neovim my biggest desir
by aktau 11y ago
Great! I remember last time I looked at Vis it wasn't so far along (it had no Lua integration AFAIK).
When I started submitting code to Neovim my biggest desires for it were (1) Lua extensibility (2) A clean codebase (3) Compatibility with (most) Vim plugins.
Perhaps ZyX-l's Vim to Lua project (for Neovim) could help with (3) at some point, if that's desired.
An LPeg based syntax highlighting was also something in the back of my mind, though way down the priority list. Fantastic to see it implemented, it truly is the right choice (Neovim uses Corsix's C99 LPeg parser for its testing framework, automatically exposing headers in a way LuaJIT's FFI groks).
Does it build with LuaJIT? (Sorry for the perhaps stupid question, I've just glanced at your comments here and the terminal "video".
Keep up the good work.
- mbrock 11y agoDoes this kind of PEG parser deal somewhat decently with partial or incorrect syntax trees?
- deleted 11y ago[deleted]
- vbit 11y agoThe parser will match the specified grammar exactly, like it should. You could of course specify a grammar that is broader than the actual language you are parsing.
- mbrock 11y agoWell, I am vaguely aware of the existence of "incremental parsers" and "tolerant parsers", and a code editor necessarily works on code that's only partially correct...
- martanne 11y ago> Does it build with LuaJIT? I'm not sure. I think a few Lua >= 5.2 dependencies have crept in, but it shouldn't be difficult to fix this if desired. LuaJIT's FFI is indeed very nice, but it is unfortunate that Lua has essentially been forked after the 5.1 release. The current C->Lua interface has been manually written.
- UncleBill 11y agoHope ZyX-l could join vis. :)