Fixed matlab syntax highlighting bug.

This commit is contained in:
Timothy Renner 2014-05-15 16:22:53 -07:00
commit 12c6cf1f41

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 : "\\?|\\:|\\,|\\;|\\."