aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua
AgeCommit message (Collapse)AuthorFilesLines
2020-08-23lexlua: Documented color restrictions for the curses platform.mitchell1-1/+13
2020-08-03lexlua: Deprecated `lexer.fold_line_comments()` in favor of ↵mitchell51-68/+85
`lexer.fold_consecutive_lines()`. Also use `lexer.fold_line_groups` for option that enables this folding, avoiding name clash that plagued the previous option. Added "import" folding for Java.
2020-07-27lexlua: Added C99 bool, true, and false to C lexer.mitchell1-1/+3
2020-07-27lexlua: Updated LuaDoc documentation.mitchell1-4/+4
2020-07-18lexlua: Alias `lexer.fold*` to `lexer.property['fold*']`.mitchell1-0/+25
This makes things simpler for applications that supply a Lua state; they do not have to manipulate property sets.
2020-07-14lexlua: Minor pattern refactoring.mitchell120-154/+154
2020-07-13lexlua: Deprecated some unused lexer patterns.mitchell4-21/+19
2020-07-13lexlua: Return `lexer.colors.name` as a number if possible.mitchell1-1/+4
2020-07-08lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.mitchell43-107/+108
2020-07-07lexlua: Added `lexer.colors` and `lexer.styles` tables for themes and lexers.mitchell15-432/+442
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-06-25lexlua: Updated Markdown lexer to handle code blocks and spans better.mitchell1-7/+15
Thanks to Alexander Misel.
2020-06-10Revert previous commit.mitchell1-2/+2
2020-06-10Support American English "changable" style setting in LexerLPeg.mitchell1-3/+3
2020-06-01lexlua: Added Fennel lexer.mitchell1-0/+37
Thanks to Momohime Honda.
2020-04-25Reformatted Lua LPeg lexers and added new convenience functions and pattern.mitchell121-1338/+1245
`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.
2020-01-07lexlua: Removed unnecessary `lpeg.B()` in Rust lexer.mitchell1-2/+2
Rule order makes it such that the 'r#' prefix will never happen prior to a keyword.
2020-01-04Always use string property values in lexlua themes.mitchell3-6/+6
2019-12-31Updated copyright year for lexlua-specific bits of LongTerm3.mitchell130-130/+130
2019-12-28lexlua: Added txt2tags lexer.mitchell1-0/+196
Thanks to Julien L.
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-10-12lexlua: Added MediaWiki lexer.mitchell1-0/+58
Thanks to Alexander Misel.
2019-09-20lexlua: Removed `print()` statement in updated prolog lexer.mitchell1-2/+0
2019-09-20lexlua: More updates to logtalk and prolog lexers.mitchell2-138/+390
Thanks to Michael Richter.
2019-09-20lexlua: C lexer recognizes indented preprocessor words.mitchell1-5/+2
2019-09-20lexlua: Updated Rust lexer.mitchell1-21/+49
Thanks to Gabriel Bertilson.
2019-09-17Updated Prolog and Logtalk lexers.mitchell2-17/+28
Thanks to Michael Richter.
2019-06-04lexlua: Support single quotes in C++14 integer literals.mitchell1-1/+5
2019-06-02lexlua: Updated Markdown lexer.mitchell1-6/+24
Thanks to Alexander Misel.
2019-04-08lexlua: Fixed rule order in YAML lexer.mitchell1-1/+1
2019-04-08lexlua: Fixed lack of highlighting strings in YAML.mitchell1-0/+1
2019-03-27lexlua: Added support for CSS 3.mitchell1-2/+9
2019-02-16Updated copyright year.mitchell129-129/+129
2019-01-31Updated dmd lexer.mitchell1-4/+3
Thanks to Jonathon Levi.
2019-01-31Do not match '..' on the trailing end of floats.mitchell1-1/+2
2018-11-25lexlua: Updated ConTeXt Lua lexer with proper diff.mitchell1-10/+14
2018-11-25lexlua: Updated ConTeXt lexer.mitchell1-15/+19
Thanks to Lars Otter.
2018-10-24lexlua: Fixed typo in a previous commit to lexer.lua.mitchell1-1/+1
2018-10-24lexlua: Updated Markdown lexer.mitchell1-8/+13
Thanks to Alexander Misel.
2018-10-24lexlua: Tweaked newline pattern to be more syntactically accurate.mitchell1-2/+2
2018-10-12lexlua: Improved HTML folding of traditionally single elements.mitchell1-15/+25
Before, elements were only folded if they were XHTML valid.
2018-10-07lexlua: Handle CR+LF in horizontal rules for Markdown.mitchell1-2/+2
2018-08-10lexlua: Updated ConTeXt lexer.mitchell1-2/+6
2018-06-16Fixed incorrect highlighting of indented markdown lists.mitchell1-5/+5
They were being identified as blockcode.
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-04-07lexlua: Added 'var' keyword for C#.mitchell1-1/+1