Merge pull request #1968 from timothyrenner/master

Fixed matlab syntax highlighting bug.
This commit is contained in:
Harutyun Amirjanyan 2014-05-16 21:32:36 +02:00
commit f1e819cd80

View file

@ -166,7 +166,7 @@ var keywords = (
this.$rules = { this.$rules = {
"start" : [ { "start" : [ {
token : "comment", token : "comment",
regex : "^%[^\r\n]*" regex : "%[^\r\n]*"
}, { }, {
token : "string", // " string token : "string", // " string
regex : '".*?"' regex : '".*?"'
@ -181,7 +181,7 @@ var keywords = (
regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b" regex : "[a-zA-Z_$][a-zA-Z0-9_$]*\\b"
}, { }, {
token : "keyword.operator", token : "keyword.operator",
regex : "\\+|\\-|\\/|\\/\\/|%|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|=" regex : "\\+|\\-|\\/|\\/\\/|<@>|@>|<@|&|\\^|~|<|>|<=|=>|==|!=|<>|="
}, { }, {
token : "punctuation.operator", token : "punctuation.operator",
regex : "\\?|\\:|\\,|\\;|\\." regex : "\\?|\\:|\\,|\\;|\\."