I use Pug a lot for templating, as well as LiveScript and SASS (sass-lang.com), so I’m trying to write a language extension that will provide the proper syntax highlighting for e.g. LiveScript within a Pug script tag (example gist).
Since all these languages are indentation-sensitive, I’m thinking that the UDL needs to recognise indents and dedents as the transition points between states. I have read through the docs at
docs.komodoide.com/SDK/luddite and can’t find anything related to indentation.
Do the LiveScript and SASS languages need to be modified to:
- keep track of indentation [how?]
- be aware of embedding and language families (CSL, M, STYLE etc) and transition between them based on indentation?
Also is there an easy workflow for testing iterations as I develop the solution? E.g. modifying installed files in-place instead of packaging and re-installing a .XPI every time?