Feature request: Haml syntax highlighting in .vue files
thechrisoshow opened this issue · comments
Chris O'Sullivan commented
Hi - just wondering how I can add Haml syntax to this?
(I don't mind making the changes if you can point me in the right direction).
Alex Tzeng commented
Hi, @thechrisoshow
The grammar file
I think the main syntax parse definition for each *-language package is inside the grammar/vue.cson
What is does
Which you would define some queries like begin
, beginCaptures
, end
, endCaptures
, and what kind of language parse rule you would want to use for these elements
For instance, here we would use the #embedded-code
rule for the some comments like <!-- vue comments -->
Which is defined in the lower part, and eventually try to use source.*
, which is defined by other language packages