aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua/texinfo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lexlua/texinfo.lua')
-rw-r--r--lexlua/texinfo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexlua/texinfo.lua b/lexlua/texinfo.lua
index bb5ba55c6..a5a7148cb 100644
--- a/lexlua/texinfo.lua
+++ b/lexlua/texinfo.lua
@@ -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')
+lex:add_style('emph', lexer.STYLE_STRING .. {italics = true})
-- Bold
lex:add_rule('strong', token('strong', '@strong' * nested_braces))
-lex:add_style('strong', lexer.STYLE_STRING .. ',bold')
+lex:add_style('strong', lexer.STYLE_STRING .. {bold = true})
-- Identifiers
lex:add_rule('identifier', token(lexer.IDENTIFIER, lexer.word))