aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/bibtex.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/bibtex.lua')
-rw-r--r--lexlua/bibtex.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/lexlua/bibtex.lua b/lexlua/bibtex.lua
index 162156103..0eee5801d 100644
--- a/lexlua/bibtex.lua
+++ b/lexlua/bibtex.lua
@@ -22,9 +22,9 @@ lex:add_style('field', lexer.STYLE_CONSTANT)
lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word))
-- Strings.
-lex:add_rule('string', token(lexer.STRING,
- lexer.delimited_range('"') +
- lexer.delimited_range('{}', false, true, true)))
+local dq_str = lexer.range('"')
+local br_str = lexer.range('{', '}', false, false, true)
+lex:add_rule('string', token(lexer.STRING, dq_str + br_str))
-- Operators.
lex:add_rule('operator', token(lexer.OPERATOR, S(',=')))