Fixed 1851 latex delimiter in ACE syntax highlighter

This commit is contained in:
benweet 2013-11-19 23:01:54 +00:00
parent 3f042515ff
commit d8bfb94cbd

View File

@ -76,13 +76,13 @@ var MarkdownHighlightRules = function() {
}, { // Escaped $
token : "text",
regex : "\\\\\\$",
}, { // Math inline
token : ["constant.language.escape", "keyword", "constant.language.escape"],
regex : "(\\$)(.*)(\\$)"
}, { // Math block
token : "constant.language.escape",
regex : "\\$\\$|\\\\\\\\\\[|\\\\\\\\\\\\\\\\\\(",
next : "mathblock"
}, { // Math inline
token : ["constant.language.escape", "keyword", "constant.language.escape"],
regex : "(\\$)(.*)(\\$)"
}, { // LaTeX block
token : ["keyword", "text"],
regex : "(\\\\?\\\\begin)(\\{[a-z]*\\*?\\})",