diff options
| author | mitchell <unknown> | 2020-07-07 20:14:11 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-07-07 20:14:11 -0400 |
| commit | 329559b74b483576a74d5f87eebf951bd12b9200 (patch) | |
| tree | 4a200348748ccfdd27d1a3f8c0352758b9f9f4c8 /lexlua/toml.lua | |
| parent | 5f930428f724eef7dd0be4706670039b89f3523e (diff) | |
| download | scintilla-mirror-329559b74b483576a74d5f87eebf951bd12b9200.tar.gz | |
lexlua: Added `lexer.colors` and `lexer.styles` tables for themes and lexers.
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.
Diffstat (limited to 'lexlua/toml.lua')
| -rw-r--r-- | lexlua/toml.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlua/toml.lua b/lexlua/toml.lua index ae6835174..e96860e44 100644 --- a/lexlua/toml.lua +++ b/lexlua/toml.lua @@ -12,7 +12,7 @@ lex:add_rule('indent', #lexer.starts_line(S(' \t')) * (token(lexer.WHITESPACE, ' ') + token('indent_error', '\t'))^1) lex:add_rule('whitespace', token(lexer.WHITESPACE, S(' \t')^1 + lexer.newline^1)) -lex:add_style('indent_error', 'back:%(color.red)') +lex:add_style('indent_error', {back = lexer.colors.red}) -- kewwords. lex:add_rule('keyword', token(lexer.KEYWORD, word_match[[true false]])) |
