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
|
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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue