Skip to content
Browse files

Added basic support for =' output indicator

  • Loading branch information...
1 parent 2d2fc34 commit 82295d407913629a1c5541f4d20c5c2f27589914 @cjhveal cjhveal committed Nov 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 syntax/slim.vim
3 syntax/slim.vim
@@ -41,7 +41,8 @@ syn region slimInterpolation matchgroup=slimInterpolationDelimiter start="#{" en
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
+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 slimText /^\(\s*\)[`|'].*\(\n\1\s.*\)*/

0 comments on commit 82295d4

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