Skip to content
Browse files

Fix {if: foo} highlighting

Closes #44
  • Loading branch information...
1 parent c918122 commit 0e584992f884b5167d32eb47658448630010f619 @tpope tpope committed Aug 21, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 syntax/ruby.vim
View
2 syntax/ruby.vim
@@ -103,6 +103,8 @@ syn match rubySymbol "[]})\"':]\@<!:\%(\$\|@@\=\)\=\h\w*"
syn match rubySymbol "[]})\"':]\@<!:\h\w*\%([?!=]>\@!\)\="
syn match rubySymbol "\%([{(,]\_s*\)\@<=\l\w*[!?]\=::\@!"he=e-1
syn match rubySymbol "[]})\"':]\@<!\h\w*[!?]\=:\s\@="he=e-1
+syn match rubySymbol "\%([{(,]\_s*\)\@<=[[:space:],{]\l\w*[!?]\=::\@!"hs=s+1,he=e-1
+syn match rubySymbol "[[:space:],{]\h\w*[!?]\=:\s\@="hs=s+1,he=e-1
syn region rubySymbol start="[]})\"':]\@<!:'" end="'" skip="\\\\\|\\'" contains=rubyQuoteEscape fold
syn region rubySymbol start="[]})\"':]\@<!:\"" end="\"" skip="\\\\\|\\\"" contains=@rubyStringSpecial fold

0 comments on commit 0e58499

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