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/gherkin.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lexlua/gherkin.lua') 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 -- cgit v1.2.3