aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/gherkin.lua
diff options
context:
space:
mode:
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