diff options
| author | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
|---|---|---|
| committer | mitchell <unknown> | 2020-07-08 10:18:42 -0400 |
| commit | be2b4322cbb398b33ee9641d04463b663c781e1a (patch) | |
| tree | 0f4dd53dc49dfb2621e8c0ab196c7762230d842a /lexlua/gherkin.lua | |
| parent | 329559b74b483576a74d5f87eebf951bd12b9200 (diff) | |
| download | scintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz | |
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/gherkin.lua')
| -rw-r--r-- | lexlua/gherkin.lua | 6 |
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 |
