3 Commits

Author SHA1 Message Date
Phil Oye
828675b32d Merge 98d9d7d170 into 95a095a4d2 2023-03-24 13:00:34 +02:00
Phil Oye
98d9d7d170 whitespace 2012-11-07 12:18:47 +11:00
Phil Oye
5b68e31c8b Add syntax highlighting for inline coffeescript in haml 2012-11-07 12:11:28 +11:00

View File

@@ -66,6 +66,7 @@ syn region hamlRubyFilter matchgroup=hamlFilter start="^\z(\s*\):ruby\s*$
syn region hamlJavascriptFilter matchgroup=hamlFilter start="^\z(\s*\):javascript\s*$" end="^\%(\z1 \| *$\)\@!" contains=@htmlJavaScript,hamlInterpolation keepend
syn region hamlCSSFilter matchgroup=hamlFilter start="^\z(\s*\):css\s*$" end="^\%(\z1 \| *$\)\@!" contains=@htmlCss,hamlInterpolation keepend
syn region hamlSassFilter matchgroup=hamlFilter start="^\z(\s*\):sass\s*$" end="^\%(\z1 \| *$\)\@!" contains=@hamlSassTop
syn region hamlCoffeescriptFilter matchgroup=hamlFilter start="^\z(\s*\):coffeescript\s*$" end="^\%(\z1 \| *$\)\@!" contains=@coffee
syn region hamlJavascriptBlock start="^\z(\s*\)%script\%((type=[\"']text/javascript[\"'])\)\=\s*$" nextgroup=@hamlComponent,hamlError end="^\%(\z1 \| *$\)\@!" contains=@hamlTop,@htmlJavaScript keepend
syn region hamlCssBlock start="^\z(\s*\)%style" nextgroup=@hamlComponent,hamlError end="^\%(\z1 \| *$\)\@!" contains=@hamlTop,@htmlCss keepend