Skip to content

Commit

Permalink
Added basic support for =' output indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
cjhveal committed Nov 27, 2011
1 parent 2d2fc34 commit 82295d4
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 82295d4

Please sign in to comment.