Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Added support for =' output indicator #11

Merged
merged 1 commit into from

3 participants

Cody Veal Tanzeeb Khalili drew stone
Cody Veal

Should fix the unmatched quote highlighting error that this indicator was causing before.

Just a note, this only works in cases where the indicator occurs on it's own line. It does not work on the same line as an html tag. This renders the =' indicator usable at least, even if it isn't an optimal solution.

drew stone
Owner

Thanks!

drew stone stonean closed this
drew stone stonean reopened this
drew stone stonean merged commit d44803d into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 27, 2011
  1. Cody Veal
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 1 deletion.
  1. +2 −1  syntax/slim.vim
3  syntax/slim.vim
View
@@ -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.*\)*/
Something went wrong with that request. Please try again.