LaTeX highlighter improvements
Added \(\) highlighter
This commit is contained in:
parent
aad20f6576
commit
6f5bc42b87
|
@ -39,7 +39,7 @@ add-highlighter shared/latex/content/ regex '\\(?!_)\w+\b' 0:keyword
|
||||||
# Options passed to scopes, between brackets
|
# Options passed to scopes, between brackets
|
||||||
add-highlighter shared/latex/content/ regex '\\(?!_)\w+\b\[([^\]]+)\]' 1:value
|
add-highlighter shared/latex/content/ regex '\\(?!_)\w+\b\[([^\]]+)\]' 1:value
|
||||||
# Content between dollar signs/pairs
|
# Content between dollar signs/pairs
|
||||||
add-highlighter shared/latex/content/ regex '(\$(\\\$|[^$])+\$)|(\$\$(\\\$|[^$])+\$\$)' 0:meta
|
add-highlighter shared/latex/content/ regex '((?<!\\)\$(\\\$|[^$])+\$)|((?<!\\)\$\$(\\\$|[^$])+\$\$)|((?<!\\)\\\[.*?\\\])|(\\\(.*?\\\))' 0:meta
|
||||||
# Emphasized text
|
# Emphasized text
|
||||||
add-highlighter shared/latex/content/ regex '\\(emph|textit)\{([^}]+)\}' 2:default+i
|
add-highlighter shared/latex/content/ regex '\\(emph|textit)\{([^}]+)\}' 2:default+i
|
||||||
# Bold text
|
# Bold text
|
||||||
|
|
Loading…
Reference in New Issue
Block a user