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 $ }, { // 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]*\\*?\\})",