Skip to content

Commit

Permalink
Fix rubyAttribute after line-end-escape.
Browse files Browse the repository at this point in the history
  • Loading branch information
Milly committed Sep 17, 2009
1 parent 9ea1965 commit 29ef7f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ endif
if !exists("ruby_no_special_methods")
syn keyword rubyAccess public protected private module_function
" attr is a common variable name
syn match rubyAttribute "\%(\%(^\|;\)\s*\)\@<=attr\>\(\s*[.=]\)\@!"
syn match rubyAttribute "\%(\%(\%^\|;\|\\\@<!\n\)\s*\)\@<=attr\>\(\s*[.=]\)\@!"
syn keyword rubyAttribute attr_accessor attr_reader attr_writer
syn match rubyControl "\<\%(exit!\|\%(abort\|at_exit\|exit\|fork\|loop\|trap\)\>[?!]\@!\)"
syn keyword rubyEval eval class_eval instance_eval module_eval
Expand Down

0 comments on commit 29ef7f9

Please sign in to comment.