hedefalk / atom-vue

Vue component file syntax for Atom

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: Haml syntax highlighting in .vue files

thechrisoshow opened this issue · comments

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).

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

Closed by #91