local info = { version = 1.324, comment = "basics for scintilla lpeg lexer for context/metafun", author = "Hans Hagen, PRAGMA-ADE, Hasselt NL", copyright = "PRAGMA ADE / ConTeXt Development Team", license = "see context related readme files", comment = "contains copyrighted code from mitchell.att.foicica.com", } -- todo: move all code here -- todo: explore adapted dll ... properties + init -- todo: play with hotspot and other properties -- wish: replace errorlist lexer (per language!) -- wish: access to all scite properties -- The fold and lex functions are copied and patched from original code by Mitchell (see -- lexer.lua). All errors are mine. The ability to use lpeg is a real nice adition and a -- brilliant move. The code is a byproduct of the (mainly Lua based) textadept (still a -- rapidly moving target) that unfortunately misses a realtime output pane. On the other -- hand, SciTE is somewhat crippled by the fact that we cannot pop in our own (language -- dependent) lexer into the output pane (somehow the errorlist lexer is hard coded into -- the editor). Hopefully that will change some day. -- -- Starting with SciTE version 3.20 there is an issue with coloring. As we still lack -- a connection with scite itself (properties as well as printing to the log pane) we -- cannot trace this (on windows). As far as I can see, there are no fundamental -- changes in lexer.lua or LexLPeg.cxx so it must be in scintilla itself. So for the -- moment I stick to 3.10. Indicators are: no lexing of 'next' and 'goto