Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added basic support for =' output indicator

  • Loading branch information...
commit 82295d407913629a1c5541f4d20c5c2f27589914 1 parent 2d2fc34
@cjhveal cjhveal authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  syntax/slim.vim
View
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.*\)*/
Please sign in to comment.
Something went wrong with that request. Please try again.