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="$"