Skip to content

Commit 1aa8f0c

Browse files
committed
Re-enable after/ files to define custom keywords
References vim-ruby#398
1 parent 96d5db4 commit 1aa8f0c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

syntax/ruby.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,7 @@ syn match rubyDefinedOperator "\%#=1\<defined?" display
463463
" 1.9-style Hash Keys and Keyword Parameters {{{1
464464
syn match rubySymbol "\%([{(|,]\_s*\)\@<=\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[?!]\=::\@!"he=e-1
465465
syn match rubySymbol "[]})\"':]\@1<!\<\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:[[:space:],;]\@="he=e-1
466+
syn match rubySymbol "[[:space:],{(]\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*[!?]\=:[[:space:],;]\@="hs=s+1,he=e-1
466467

467468
" __END__ Directive {{{1
468469
SynFold '__END__' syn region rubyData matchgroup=rubyDataDirective start="^__END__$" end="\%$"

0 commit comments

Comments
 (0)