From 6ad8a7f6d885c212497e3b07c305c313df269b07 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Fri, 1 Aug 2008 15:11:01 -0400 Subject: [PATCH] Filters update - Support #{} interpolation in appropriate filters - Support for escaped filter - Better highlighting for erb filter --- syntax/haml.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax/haml.vim b/syntax/haml.vim index 8b22d8c..395600a 100644 --- a/syntax/haml.vim +++ b/syntax/haml.vim @@ -42,11 +42,15 @@ syn region hamlRuby matchgroup=hamlRubyChar start="-" end="$" contai syn match hamlPlainChar "\\" contained syn region hamlInterpolatable matchgroup=hamlInterpolatableChar start="==" end="$" keepend contained contains=hamlInterpolation syn region hamlInterpolation matchgroup=hamlInterpolationDelimiter start="#{" end="}" contained contains=@hamlRubyTop +syn region hamlErbInterpolation matchgroup=hamlInterpolationDelimiter start="<%[=-]\=" end="-\=%>" contained contains=@hamlRubyTop syn match hamlHelper "\