aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/gherkin.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/gherkin.lua
parent329559b74b483576a74d5f87eebf951bd12b9200 (diff)
downloadscintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/gherkin.lua')
-rw-r--r--lexlua/gherkin.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lexlua/gherkin.lua b/lexlua/gherkin.lua
index eedfe3436..66882bdaa 100644
--- a/lexlua/gherkin.lua
+++ b/lexlua/gherkin.lua
@@ -28,15 +28,15 @@ local number = token(lexer.NUMBER, lexer.number)
-- Tags.
lex:add_rule('tag', token('tag', '@' * lexer.word^0))
-lex:add_style('tag', lexer.STYLE_LABEL)
+lex:add_style('tag', lexer.styles.label)
-- Placeholders.
lex:add_rule('placeholder', token('placeholder',
lexer.range('<', '>', false, false, true)))
-lex:add_style('placeholder', lexer.STYLE_VARIABLE)
+lex:add_style('placeholder', lexer.styles.variable)
-- Examples.
lex:add_rule('example', token('example', lexer.to_eol('|')))
-lex:add_style('example', lexer.STYLE_NUMBER)
+lex:add_style('example', lexer.styles.number)
return lex