Re:Show HN: A console-based editor with Lua support, based o...
by stevekemp on Saturday July 30, 2016 @11:33PM
(#12195623)
Belated update, but thanks for the tip.
In the end I did indeed add syntax-highlighting via the use of the LPEG library.
Re:Show HN: A console-based editor with Lua support, based o...
by sdegutis on Thursday July 21, 2016 @04:40PM
(#12139879)
As another person writing an Emacs-like Lua-based fork of antirez's original text editor, I'm not convinced that's the right way to go. The vast majority of language definitions will work fine with antirez's much simpler solution. And even if something more complex is needed, I'm not sure that requiring language authors to learn LPeg is a good idea.
http://www.inf.puc-rio.br/~roberto/lpeg/
http://peterodding.com/code/lua/lxsh
http://foicica.com/scintillua/
http://leafo.net/guides/parsing-expression-grammars.html