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