You can edit the grammar of the HAML package, but it looks like it has already been done in some other forks of the HAML package. See phuibonhoa / handcrafted-haml-textmate-bundle , for example:
Improved language
- Text inside Ruby, ERB, Javascript, Sass and CSS filters is now correctly recognized, so you get all syntax highlighting, fragments, commands, etc.
.