Skip to content

Commit

Permalink
Merge pull request #11 from cjhveal/master
Browse files Browse the repository at this point in the history
Added support for =' output indicator
  • Loading branch information
Andrew Stone committed Nov 28, 2011
2 parents bd2057a + 82295d4 commit d44803d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syntax/slim.vim
Expand Up @@ -41,7 +41,8 @@ syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{" en
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 slimHtml start="^\s*[^-=]\w" end="$" contains=htmlTagName,htmlArg,htmlString,slimInterpolation,slimRubyOutput keepend


syn region slimRubyCode start="[-=]" end="$" contains=@slimRuby syn region slimRubyCode start="[-=][^']" end="$" contains=@slimRuby
syn region slimRubyWhitespaceCode start="^\s*='"ms=e+1 end="$" contains=@slimRuby


syn match slimComment /^\(\s*\)[/].*\(\n\1\s.*\)*/ syn match slimComment /^\(\s*\)[/].*\(\n\1\s.*\)*/
syn match slimText /^\(\s*\)[`|'].*\(\n\1\s.*\)*/ syn match slimText /^\(\s*\)[`|'].*\(\n\1\s.*\)*/
Expand Down

0 comments on commit d44803d

Please sign in to comment.