Fix latex.kak

Solve #1346
This commit is contained in:
wheatdog 2017-10-17 21:14:08 +08:00
parent 209113aa1c
commit 6f6e76a245

View File

@ -20,7 +20,7 @@ add-highlighter -group /latex/content regex '\\(?!_)\w+\b' 0:keyword
# Options passed to scopes, between brackets # Options passed to scopes, between brackets
add-highlighter -group /latex/content regex '\\(?!_)\w+\b\[([^]]+)\]' 1:value add-highlighter -group /latex/content regex '\\(?!_)\w+\b\[([^]]+)\]' 1:value
# Content between dollar signs/pairs # Content between dollar signs/pairs
add-highlighter -group /latex/content regex '(?<!\\)\$\$?([^$]|(?<=\\)\$)+\$\$?' 0:magenta add-highlighter -group /latex/content regex '(\$(\\\$|[^$])+\$)|(\$\$(\\\$|[^$])+\$\$)' 0:magenta
# Emphasized text # Emphasized text
add-highlighter -group /latex/content regex '\\(emph|textit)\{([^}]+)\}' 2:default+i add-highlighter -group /latex/content regex '\\(emph|textit)\{([^}]+)\}' 2:default+i
# Bold text # Bold text