Closed starmatt closed 3 years ago
Hi, thanks for the feedback and suggestion. I've updated the plugin to support the transition attributes as htmlArg
.
Also, if you want to highlight all custom HTML attributes as htmlArg
, you can try and add
syntax match htmlArg contained "\<[-0-9A-Za-z_]\+\>"
to your custom syntax files like vimfiles/syntax/html.vim
or vimfiles/syntax/vue.vim
.
Working great, thanks a lot !
Glad to hear that. I just found that there was something wrong with the custom htmlArg
pattern. Please try this corrected one
syntax match htmlArg contained "\<[-0-9A-Za-z_]\+\>"
Hello again,
I've noticed![transition syntax](https://i.imgur.com/NVOm5qa.png)
<transition>
attributes (see docs for full list) don't get highlighted like other vue attributes. Here's a screenshot showing what I mean:These attributes are linked to the
htmlTag
group instead ofVueKey
orhtmlArg
.I also want to make a small side-note, unrelated to your plugin: do you know if there is a way to link all custom HTML attributes to the
htmlArg
group ? I know vim just doesn't highlight attributes it doesn't recognize, but it's been driving me crazy and I've been looking for a way to overcome this limitation.Thanks again for your help and attention, and again, awesome plugin !