From be2b4322cbb398b33ee9641d04463b663c781e1a Mon Sep 17 00:00:00 2001 From: mitchell Date: Wed, 8 Jul 2020 10:18:42 -0400 Subject: lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`. --- lexlua/xtend.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlua/xtend.lua') 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('+-/*%<>!=^&|?~:;.()[]{}#'))) -- cgit v1.2.3