aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/lexer.lua
AgeCommit message (Collapse)AuthorFilesLines
2020-06-10Revert previous commit.mitchell1-2/+2
2020-06-10Support American English "changable" style setting in LexerLPeg.mitchell1-3/+3
2020-04-25Reformatted Lua LPeg lexers and added new convenience functions and pattern.mitchell1-34/+94
`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-1/+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-57/+54
2020-03-26Switch to 1-based indices in Lua.mitchell1-11/+11
The only external, 3rd party lexers that would be affected are those implementing their own fold functions.
2020-03-06More LexLPeg refactoring, including a safer Lua state.mitchell1-24/+22
Do not load either `io` (Lua 5.1) or `package` modules and updated lexer.lua functions to utilize safer versions of `require()` and `package.searchpath()`. Also support ';'-separated paths for lexers via existing `lexer.lpeg.home` property or new SCI_LOADLEXERLIBRARY API. Refactor to use property constants and class methods for property setting.
2019-12-31Updated copyright year for lexlua-specific bits of LongTerm3.mitchell1-1/+1
2019-10-12lexlua: Prevent double-counting of fold points on a single line.mitchell1-1/+1
If a fold word appears more than once on a line, ensure that each occurrence satisfies the fold point criteria, rather than just one of them.
2019-02-16Updated copyright year.mitchell1-1/+1
2019-01-31Do not match '..' on the trailing end of floats.mitchell1-1/+2
2018-10-24lexlua: Fixed typo in a previous commit to lexer.lua.mitchell1-1/+1
2018-10-24lexlua: Tweaked newline pattern to be more syntactically accurate.mitchell1-2/+2
2018-06-12Fixed child lexers that embed themselves into parents and fixed proxy lexers.mitchell1-6/+8
Since the _NAME field of the parent lexer was changed, embedded child references to it are no longer valid. Keep a copy of the parent name for reference.
2018-06-05Handle legacy lexer "_fold" functions.mitchell1-0/+2
2018-03-11Added optional Lua lexer support.mitchell1-0/+1865
This support is disabled by default and must be enabled via compile-time option.