springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

Tag highlighting #73

Open fortael opened 7 years ago

fortael commented 7 years ago

Is that even possible to highlight vue tags? I already add two regex for @ and v-* but it does not work with :. For example

2017-01-02_23-00-12 2017-01-02_23-00-12

But ide ignores : at all, even with regex. It some kind of problem with xml standarts, I think...

2017-01-02_23-00-12 2017-01-02_23-00-12 2017-01-02_23-00-12

amcsi commented 7 years ago

: is actually valid according to the XML standard.

https://www.w3.org/TR/REC-xml/#NT-Attribute https://www.w3.org/TR/REC-xml/#NT-NameStartChar

[4]     NameStartChar      ::=      ":" | [A-Z] | "_" | [a-z] | [#xC0-#xD6] | [#xD8-#xF6] | [#xF8-#x2FF] | [#x370-#x37D] | [#x37F-#x1FFF] | [#x200C-#x200D] | [#x2070-#x218F] | [#x2C00-#x2FEF] | [#x3001-#xD7FF] | [#xF900-#xFDCF] | [#xFDF0-#xFFFD] | [#x10000-#xEFFFF]
[4a]    NameChar       ::=      NameStartChar | "-" | "." | [0-9] | #xB7 | [#x0300-#x036F] | [#x203F-#x2040]
[5]     Name       ::=      NameStartChar (NameChar)*
fortael commented 7 years ago

Okay, but idea core for some reasons do not parse :. I even can not use escape char like \:[a-z].*. It is automatically deleted. So i believe the plugin may help.

Even this does not work. img