FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Don't match $_foo as invalid variable · theprogramsam/vim-ruby@2fedd6b · GitHub

Commit 2fedd6b

Browse files
committed
Don't match $_foo as invalid variable
1 parent a2196f5 commit 2fedd6b

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎ChangeLog‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2008-06-29 Tim Pope <vim@tpope.info>
2+
3+
* syntax/ruby.vim: don't match $_foo as an invalid variable
4+
15
2008-04-25 Tim Pope <vim@tpope.info>
26

37
* ftplugin/eruby.vim, syntax/eruby.vim: guard against recursion

‎syntax/ruby.vim‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ syn region rubySymbol start="[]})\"':]\@<!:\"" end="\"" skip="\\\\\|\\\"" cont
107107
syn match rubyBlockParameter "\h\w*" contained
108108
syn region rubyBlockParameterList start="\%(\%(\<do\>\|{\)\s*\)\@<=|" end="|" oneline display contains=rubyBlockParameter
109109

110-
syn match rubyInvalidVariable "$[^ A-Za-z-]"
110+
syn match rubyInvalidVariable "$[^ A-Za-z_-]"
111111
syn match rubyPredefinedVariable #$[!$&"'*+,./0:;<=>?@\`~1-9]#
112112
syn match rubyPredefinedVariable "$_\>" display
113113
syn match rubyPredefinedVariable "$-[0FIKadilpvw]\>" display

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL