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/python.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lexlua/python.lua') diff --git a/lexlua/python.lua b/lexlua/python.lua index 72e70d70e..4786e7a44 100644 --- a/lexlua/python.lua +++ b/lexlua/python.lua @@ -67,7 +67,7 @@ lex:add_rule('constant', token(lexer.CONSTANT, word_match[[ -- Self. lex:add_rule('self', token('self', P('self'))) -lex:add_style('self', lexer.STYLE_TYPE) +lex:add_style('self', lexer.styles.type) -- Identifiers. lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word)) @@ -94,7 +94,7 @@ lex:add_rule('number', token(lexer.NUMBER, lexer.float + integer)) -- Decorators. lex:add_rule('decorator', token('decorator', lexer.to_eol('@'))) -lex:add_style('decorator', lexer.STYLE_PREPROCESSOR) +lex:add_style('decorator', lexer.styles.preprocessor) -- Operators. lex:add_rule('operator', token(lexer.OPERATOR, S('!%^&*()[]{}-=+/|:;.,?<>~`'))) -- cgit v1.2.3