Heigh Tech LLC 2011-02-01 17:17:35 +01:00
commit 0b34f16823

View file

@ -140,31 +140,8 @@ RubyHighlightRules = function() {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line
regex : ".+" regex : ".+"
} }
],
"qqstring" : [
{
token : "string",
regex : '(?:(?:\\\\.)|(?:[^"\\\\]))*?"',
next : "start"
}, {
token : "string",
regex : '.+'
}
],
"qstring" : [
{
token : "string",
regex : "(?:(?:\\\\.)|(?:[^'\\\\]))*?'",
next : "start"
}, {
token : "string",
regex : '.+'
}
] ]
}; };
this.addRules(docComment.getRules(), "doc-");
this.$rules["doc-start"][0].next = "start";
}; };
oop.inherits(RubyHighlightRules, TextHighlightRules); oop.inherits(RubyHighlightRules, TextHighlightRules);