PATCH: class variables and expression substitution

Doug Kearns djkea2 at mugca.its.monash.edu.au
Sat Aug 16 22:46:11 EDT 2003


String expression substitution of class variables does not require the
braces - just like global and instance variables.

Regards,
Doug

Index: syntax/ruby.vim
===================================================================
RCS file: /var/cvs/vim-ruby/vim-ruby/syntax/ruby.vim,v
retrieving revision 1.3
diff -u -r1.3 ruby.vim
--- syntax/ruby.vim	9 Aug 2003 04:55:58 -0000	1.3
+++ syntax/ruby.vim	16 Aug 2003 11:37:55 -0000
@@ -27,7 +27,7 @@
 " Expression Substitution and Backslash Notation
 syn match rubyExprSubst "\\\\\|\(\(\\M-\\C-\|\\c\|\\C-\|\\M-\)\w\)\|\(\\\o\{3}\|\\x\x\{2}\|\\[abefnrstv]\)" contained
 syn match rubyExprSubst "#{[^}]*}" contained
-syn match rubyExprSubst "#[$@]\w\+" contained
+syn match rubyExprSubst "#\(\$\|@@\=\)\w\+" contained
 
 " Numbers and ASCII Codes
 syn match rubyNumber "\w\@<!\(?\(\\M-\\C-\|\\C-\\M-\|\\M-\\c\|\\c\\M-\|\\c\|\\C-\|\\M-\)\=\(\\\o\{3}\|\\x\x\{2}\|\\\=\S\)\)"


More information about the vim-ruby-devel mailing list