Fixed multiple inline maths in ACE highlighting. Fixes #198
This commit is contained in:
parent
91d74f1515
commit
99c8aed4d0
@ -73,16 +73,10 @@ var MarkdownHighlightRules = function() {
|
|||||||
token : "markup.list",
|
token : "markup.list",
|
||||||
regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
|
regex : "^\\s{0,3}(?:[*+-]|\\d+\\.)\\s+",
|
||||||
next : "listblock-start"
|
next : "listblock-start"
|
||||||
}, { // Escaped $
|
|
||||||
token : "text",
|
|
||||||
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]*\\*?\\})",
|
||||||
@ -95,6 +89,12 @@ var MarkdownHighlightRules = function() {
|
|||||||
"basic" : [{
|
"basic" : [{
|
||||||
token : "constant.language.escape",
|
token : "constant.language.escape",
|
||||||
regex : /\\[\\`*_{}\[\]()#+\-.!]/
|
regex : /\\[\\`*_{}\[\]()#+\-.!]/
|
||||||
|
}, { // Escaped $
|
||||||
|
token : "text",
|
||||||
|
regex : "\\\\\\$",
|
||||||
|
}, { // Math inline
|
||||||
|
token : ["constant.language.escape", "keyword", "constant.language.escape"],
|
||||||
|
regex : "(\\$)(.*?)(\\$)"
|
||||||
}, { // code span `
|
}, { // code span `
|
||||||
token : "code",
|
token : "code",
|
||||||
regex : "(`+)(.*?[^`])(\\1)"
|
regex : "(`+)(.*?[^`])(\\1)"
|
||||||
|
@ -334,7 +334,6 @@ a {
|
|||||||
height: @input-height-base;
|
height: @input-height-base;
|
||||||
width: 65px;
|
width: 65px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-right: 8px;
|
|
||||||
.bar {
|
.bar {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 10px;
|
width: 10px;
|
||||||
|
Loading…
Reference in New Issue
Block a user