Skip to content

Commit

Permalink
Limit the rubyBlockParameterList lookbehind width
Browse files Browse the repository at this point in the history
  • Loading branch information
dkearns committed Aug 27, 2016
1 parent 1e4c5ae commit e14117e
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 @@ -138,7 +138,7 @@ endif
syn match rubyCapitalizedMethod "\%(\%(^\|[^.]\)\.\s*\)\@<!\<\u\%(\w\|[^\x00-\x7F]\)*\>\%(\s*(\)*\s*(\@="

syn match rubyBlockParameter "\%(\h\|[^\x00-\x7F]\)\%(\w\|[^\x00-\x7F]\)*" contained
syn region rubyBlockParameterList start="\%(\%(\<do\>\|{\)\_s*\)\@<=|" end="|" oneline display contains=rubyBlockParameter
syn region rubyBlockParameterList start="\%(\%(\<do\>\|{\)\_s*\)\@32<=|" end="|" oneline display contains=rubyBlockParameter

syn match rubyInvalidVariable "$[^ A-Za-z_-]"
syn match rubyPredefinedVariable #$[!$&"'*+,./0:;<=>?@\`~]#
Expand Down

0 comments on commit e14117e

Please sign in to comment.