Skip to content
Browse files

Matchgroup for curly braces

  • Loading branch information...
1 parent 4f1519e commit c61accbf503fc3735ad4a8ab8d8121b109c08ac6 @AndrewRadev AndrewRadev committed Nov 25, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 syntax/ruby.vim
View
4 syntax/ruby.vim
@@ -222,8 +222,8 @@ if !exists("b:ruby_no_expensive") && !exists("ruby_no_expensive")
syn region rubyDoBlock matchgroup=rubyControl start="\<do\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold
" curly bracket block or hash literal
- syn region rubyCurlyBlock start="{" end="}" contains=ALLBUT,@rubyNotTop fold
- syn region rubyArrayLiteral matchgroup=rubyArrayDelimiter start="\%(\w\|[\]})]\)\@<!\[" end="]" contains=ALLBUT,@rubyNotTop fold
+ syn region rubyCurlyBlock matchgroup=rubyCurlyBlockDelimiter start="{" end="}" contains=ALLBUT,@rubyNotTop fold
+ syn region rubyArrayLiteral matchgroup=rubyArrayDelimiter start="\%(\w\|[\]})]\)\@<!\[" end="]" contains=ALLBUT,@rubyNotTop fold
" statements without 'do'
syn region rubyBlockExpression matchgroup=rubyControl start="\<begin\>" end="\<end\>" contains=ALLBUT,@rubyNotTop fold

0 comments on commit c61accb

Please sign in to comment.
Something went wrong with that request. Please try again.