aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test_lexlua.lua
AgeCommit message (Collapse)AuthorFilesLines
2020-07-13lexlua: Return `lexer.colors.name` as a number if possible.mitchell1-1/+1
2020-07-07lexlua: Added `lexer.colors` and `lexer.styles` tables for themes and lexers.mitchell1-4/+75
This allows for a more Lua table-oriented approach to defining and using colors and styles, instead of manually manipulating Scintilla property strings. Themes and lexers are still backwards compatible, as the underlying mechanisms are still in place.
2020-04-25Reformatted Lua LPeg lexers and added new convenience functions and pattern.mitchell1-1/+40
`lexer.range()` replaces `lexer.delimited_range()` and `lexer.nested_pair()`. `lexer.to_eol()` replaces `patt * lexer.nonnewline^0` constructs. `lexer.number` replaces `lexer.float + lexer.integer`. Also added unit tests for lexer functions.
2020-03-29lexlua: Fixed incorrect grammar building for lexers that embed themselves.mitchell1-0/+2
When there is no initial '*_whitespace' style, child lexers should prefer their parent's grammar rather than their own.
2020-03-28Switch to 1-based style numbers internally in Lua.mitchell1-4/+4
2020-03-26Switch to 1-based indices in Lua.mitchell1-3/+3
The only external, 3rd party lexers that would be affected are those implementing their own fold functions.
2018-10-26lexlua: Fixed HTML unit test with lexer update.mitchell1-5/+3
2018-06-12Added unit tests for Lua LPeg lexers.mitchell1-0/+1148