Open michaelkryukov opened 4 years ago
Also, it would be nice if I could specify 'coffee' as 'coffeescript' in the lang attribute of the script tag. Are there any options for that?
Also, it would be nice if I could specify 'coffee' as 'coffeescript' in the lang attribute of the script tag. Are there any options for that?
Not really, AFAIK the community convention is to use coffee
and you should follow that.
{
"vetur.grammar.customBlocks": {
"type": "object",
"default": {
"docs": "md",
"i18n": "json"
},
"description": "Mapping from custom block tag name to language name. Used for generating grammar to support syntax highlighting for custom blocks."
}
}
I'd be ok to allow { "i18n": { language: "json", selfClosing: true } }
, with selfClosing
being optional and default to false.
Contribution welcome.
Good day. I have code in my project that uses custom
i18n
tag:It highlights incorrectly, because grammar don't create single-line versions of custom tags (as far as i understood). I updated
client/grammar.js
to create versions for my use-case, and it working fine: