davidrios / pug-tmbundle

A comprehensive textmate / sublime text bundle for the Pug (formerly Jade) template language.
https://github.com/davidrios/pug-tmbundle
MIT License
48 stars 20 forks source link

Add scss and markdown filter language recognition #23

Closed lunelson closed 4 years ago

lunelson commented 6 years ago

This might be quite naive -- I don't know what else needs to be done to build and/or test this, but it seemed that by adding the right blocks in the .JSON-tmLanguage file these mappings could be established. My desire is to eventually have the vscode people pull this through to their language extension too (currently they are mapped to your older extension, jade-tmbundle).

Please give me some pointers, if it requires more work.

davidrios commented 1 year ago

It's not possible to add Markdown because of the special meaning of white spaces in it. Only the scope changes, but the whitespaces are preserved, so Markdown thinks the content is a code block because it's already indented inside the filter block.