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/texinfo.lua | |
| parent | 329559b74b483576a74d5f87eebf951bd12b9200 (diff) | |
| download | scintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz | |
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/texinfo.lua')
| -rw-r--r-- | lexlua/texinfo.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lexlua/texinfo.lua b/lexlua/texinfo.lua index a5a7148cb..f7479fa5d 100644 --- a/lexlua/texinfo.lua +++ b/lexlua/texinfo.lua @@ -80,7 +80,7 @@ local directives_base = word_match([[ ]], true) lex:add_rule('directive', token('directives', ('@end' * lexer.space^1 + '@') * directives_base)) -lex:add_style('directives', lexer.STYLE_FUNCTION) +lex:add_style('directives', lexer.styles['function']) -- Chapters. local chapters_base = word_match([[ @@ -104,7 +104,7 @@ local chapters_base = word_match([[ ]], true) lex:add_rule('chapter', token('chapters', ('@end' * lexer.space^1 + '@') * chapters_base)) -lex:add_style('chapters', lexer.STYLE_CLASS) +lex:add_style('chapters', lexer.styles.class) -- Common keywords. local keyword_base = word_match([[ @@ -182,11 +182,11 @@ local nested_braces = lexer.range('{', '}', false, false, true) -- Italics lex:add_rule('emph', token('emph', '@emph' * nested_braces)) -lex:add_style('emph', lexer.STYLE_STRING .. {italics = true}) +lex:add_style('emph', lexer.styles.string .. {italics = true}) -- Bold lex:add_rule('strong', token('strong', '@strong' * nested_braces)) -lex:add_style('strong', lexer.STYLE_STRING .. {bold = true}) +lex:add_style('strong', lexer.styles.string .. {bold = true}) -- Identifiers lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word)) |
