aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/python.lua
diff options
context:
space:
mode:
authormitchell <unknown>2020-07-08 10:18:42 -0400
committermitchell <unknown>2020-07-08 10:18:42 -0400
commitbe2b4322cbb398b33ee9641d04463b663c781e1a (patch)
tree0f4dd53dc49dfb2621e8c0ab196c7762230d842a /lexlua/python.lua
parent329559b74b483576a74d5f87eebf951bd12b9200 (diff)
downloadscintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/python.lua')
-rw-r--r--lexlua/python.lua4
1 files changed, 2 insertions, 2 deletions
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('!%^&*()[]{}-=+/|:;.,?<>~`')))