From cabed106e22e66e1ba1fd68df70b1e069f292e40 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 23 Jul 2009 15:17:35 -0400 Subject: [PATCH] At beginning of line, #{ is interpolation, not id --- syntax/haml.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/haml.vim b/syntax/haml.vim index 754d6be..7d5099e 100644 --- a/syntax/haml.vim +++ b/syntax/haml.vim @@ -33,7 +33,7 @@ syn region hamlObject matchgroup=hamlObjectDelimiter start="\[" end syn match hamlDespacer "[<>]" contained nextgroup=hamlDespacer,hamlSelfCloser,hamlRuby,hamlPlainChar,hamlInterpolatable syn match hamlSelfCloser "/" contained syn match hamlClassChar "\." contained nextgroup=hamlClass -syn match hamlIdChar "#" contained nextgroup=hamlId +syn match hamlIdChar "#{\@!" contained nextgroup=hamlId syn match hamlClass "\%(\w\|-\)\+" contained nextgroup=@hamlComponent syn match hamlId "\%(\w\|-\)\+" contained nextgroup=@hamlComponent syn region hamlDocType start="^\s*!!!" end="$"