fix highlighting of =begin comments in ruby

This commit is contained in:
nightwing 2012-11-01 22:12:12 +04:00
commit e0c721b033

View file

@ -104,7 +104,7 @@ var RubyHighlightRules = function() {
}, { }, {
token : "comment", // multi line comment token : "comment", // multi line comment
merge : true, merge : true,
regex : "^\=begin$", regex : "^=begin\\s",
next : "comment" next : "comment"
}, { }, {
token : "string.regexp", token : "string.regexp",
@ -161,7 +161,7 @@ var RubyHighlightRules = function() {
"comment" : [ "comment" : [
{ {
token : "comment", // closing comment token : "comment", // closing comment
regex : "^\=end$", regex : "^=end\\s.*$",
next : "start" next : "start"
}, { }, {
token : "comment", // comment spanning whole line token : "comment", // comment spanning whole line