aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/bibtex.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/bibtex.lua
parent329559b74b483576a74d5f87eebf951bd12b9200 (diff)
downloadscintilla-mirror-be2b4322cbb398b33ee9641d04463b663c781e1a.tar.gz
lexlua: Convert uses of `lexer.STYLE_*` to `lexer.styles.*`.
Diffstat (limited to 'lexlua/bibtex.lua')
-rw-r--r--lexlua/bibtex.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/bibtex.lua b/lexlua/bibtex.lua
index 0eee5801d..edd1b659f 100644
--- a/lexlua/bibtex.lua
+++ b/lexlua/bibtex.lua
@@ -16,7 +16,7 @@ lex:add_rule('field', token('field', word_match[[
series address edition howpublished booktitle organization chapter school
institution type isbn issn affiliation issue keyword url
]]))
-lex:add_style('field', lexer.STYLE_CONSTANT)
+lex:add_style('field', lexer.styles.constant)
-- Identifiers.
lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word))
@@ -37,7 +37,7 @@ local entry = token('entry', P('@') * word_match([[
book article booklet conference inbook incollection inproceedings manual
mastersthesis lambda misc phdthesis proceedings techreport unpublished
]], true))
-lex:add_style('entry', lexer.STYLE_PREPROCESSOR)
+lex:add_style('entry', lexer.styles.preprocessor)
local bibtex_start_rule = entry * ws^0 * token(lexer.OPERATOR, P('{'))
local bibtex_end_rule = token(lexer.OPERATOR, P('}'))
latex:embed(lex, bibtex_start_rule, bibtex_end_rule)