Skip to content

Commit

Permalink
Merge pull request #8 from AndrewRadev/fix-ruby-output-highlighting
Browse files Browse the repository at this point in the history
Fix highlighting problem with ruby output
  • Loading branch information
Brian Bommarito committed Sep 19, 2011
2 parents ab5f147 + 6e69995 commit 2d2fc34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syntax/slim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ unlet! b:current_syntax
silent! syn include @slimCoffee syntax/coffee.vim
unlet! b:current_syntax

" Include HTML
" Include HTML
runtime! syntax/html.vim
unlet! b:current_syntax

setlocal iskeyword+=:

syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{" end="}" contained contains=@slimRuby

syn region slimRubyOutput start="=\s*" skip=",\s*" end=" " contained contains=@slimRuby
syn region slimRubyOutput start="=\s*" skip=",\s*" end="$" contained contains=@slimRuby
syn region slimHtml start="^\s*[^-=]\w" end="$" contains=htmlTagName,htmlArg,htmlString,slimInterpolation,slimRubyOutput keepend

syn region slimRubyCode start="[-=]" end="$" contains=@slimRuby
Expand Down

0 comments on commit 2d2fc34

Please sign in to comment.