diff options
| author | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
| commit | be2b4322cbb398b33ee9641d04463b663c781e1a (patch) | |
| tree | 0f4dd53dc49dfb2621e8c0ab196c7762230d842a /lexlua/xtend.lua | |
| parent | 329559b74b483576a74d5f87eebf951bd12b9200 (diff) | |
| download | scintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz | |
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/xtend.lua')
| -rw-r--r-- | lexlua/xtend.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/xtend.lua b/lexlua/xtend.lua index c54bc137d..f0d3a56b1 100644 --- a/lexlua/xtend.lua +++ b/lexlua/xtend.lua @@ -42,7 +42,7 @@ lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word)) -- Templates. lex:add_rule('template', token('template', lexer.range("'''"))) -lex:add_style('template', lexer.STYLE_EMBEDDED) +lex:add_style('template', lexer.styles.embedded) -- Strings. local sq_str = lexer.range("'", true) @@ -73,7 +73,7 @@ lex:add_rule('number', token(lexer.NUMBER, float + hex + dec)) -- Annotations. lex:add_rule('annotation', token('annotation', '@' * lexer.word)) -lex:add_style('annotation', lexer.STYLE_PREPROCESSOR) +lex:add_style('annotation', lexer.styles.preprocessor) -- Operators. lex:add_rule('operator', token(lexer.OPERATOR, S('+-/*%<>!=^&|?~:;.()[]{}#'))) |
