Fixed 1851 latex delimiter in ACE syntax highlighter
This commit is contained in:
parent
3f042515ff
commit
d8bfb94cbd
@ -76,13 +76,13 @@ var MarkdownHighlightRules = function() {
|
|||||||
}, { // Escaped $
|
}, { // Escaped $
|
||||||
token : "text",
|
token : "text",
|
||||||
regex : "\\\\\\$",
|
regex : "\\\\\\$",
|
||||||
}, { // Math inline
|
|
||||||
token : ["constant.language.escape", "keyword", "constant.language.escape"],
|
|
||||||
regex : "(\\$)(.*)(\\$)"
|
|
||||||
}, { // Math block
|
}, { // Math block
|
||||||
token : "constant.language.escape",
|
token : "constant.language.escape",
|
||||||
regex : "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(",
|
regex : "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(",
|
||||||
next : "mathblock"
|
next : "mathblock"
|
||||||
|
}, { // Math inline
|
||||||
|
token : ["constant.language.escape", "keyword", "constant.language.escape"],
|
||||||
|
regex : "(\\$)(.*)(\\$)"
|
||||||
}, { // LaTeX block
|
}, { // LaTeX block
|
||||||
token : ["keyword", "text"],
|
token : ["keyword", "text"],
|
||||||
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
|
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",
|
||||||
|
Loading…
Reference in New Issue
Block a user