From 82295d407913629a1c5541f4d20c5c2f27589914 Mon Sep 17 00:00:00 2001 From: Cody Veal Date: Sun, 27 Nov 2011 16:42:47 -0500 Subject: [PATCH] Added basic support for =' output indicator --- syntax/slim.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syntax/slim.vim b/syntax/slim.vim index f27d539..65e0786 100644 --- a/syntax/slim.vim +++ b/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.*\)*/