Skip to content

Commit dbbaf09

Browse files
committed
make sure multi-line backslash escaped interpolation regions are highlighted as
rubyString
1 parent e5bbf8e commit dbbaf09

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2007-02-23 Doug Kearns <dougkearns@gmail.com>
2+
3+
* syntax/ruby.vim: make sure multi-line backslash escaped
4+
interpolation regions are highlighted as rubyString
5+
16
2007-02-23 Doug Kearns <dougkearns@gmail.com>
27

38
* syntax/ruby.vim: link the rubyLoop syntax group to the Repeat

syntax/ruby.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ syn match rubyEscape "\%(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\
4545
syn region rubyInterpolated matchgroup=rubyInterpolation start="#{" end="}" contains=TOP contained
4646
"syn match rubyInterpolation "#\%(\$\|@@\=\)\w\+" contained contains=rubyInstanceVariable,rubyClassVariable,rubyGlobalVariable display
4747
syn match rubyInterpolation "#\ze\%(\$\|@@\=\)\w\+" contained display nextgroup=rubyClassVariable,rubyInstanceVariable,rubyGlobalVariable
48-
syn match rubyNoInterpolation "\\#{[^}]*}" contained
49-
syn match rubyNoInterpolation "\\#\%(\$\|@@\=\)\w\+" contained display
48+
syn region rubyNoInterpolation start="\\#{" end="}" contained
49+
syn match rubyNoInterpolation "\\#\%(\$\|@@\=\)\w\+" contained display
5050

5151
syn match rubyDelimEscape "\\[(<{\[)>}\]]" transparent display contained contains=NONE
5252

0 commit comments

Comments
 (0)