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