fix highlighting of =begin comments in ruby
This commit is contained in:
parent
4c4278f446
commit
e0c721b033
1 changed files with 2 additions and 2 deletions
|
|
@ -104,7 +104,7 @@ var RubyHighlightRules = function() {
|
|||
}, {
|
||||
token : "comment", // multi line comment
|
||||
merge : true,
|
||||
regex : "^\=begin$",
|
||||
regex : "^=begin\\s",
|
||||
next : "comment"
|
||||
}, {
|
||||
token : "string.regexp",
|
||||
|
|
@ -161,7 +161,7 @@ var RubyHighlightRules = function() {
|
|||
"comment" : [
|
||||
{
|
||||
token : "comment", // closing comment
|
||||
regex : "^\=end$",
|
||||
regex : "^=end\\s.*$",
|
||||
next : "start"
|
||||
}, {
|
||||
token : "comment", // comment spanning whole line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue