mirror of
https://github.com/leafOfTree/vim-vue-plugin.git
synced 2025-12-08 21:54:46 +08:00
Fix empty Vue attribute string's highlight issue
This commit is contained in:
@@ -23,8 +23,9 @@ syntax match VueAttr '\v(\S)@<![v:\@][^\=\>[:blank:]]+(\=\"[^"]*\")?'
|
||||
|
||||
syntax match VueKey contained '\v[v:\@][^\=\>[:blank:]]+'
|
||||
syntax region VueQuote contained
|
||||
\ start='"' end='"' contains=VueValue
|
||||
syntax match VueValue contained '\v\"\zs[^"]*\ze\"'
|
||||
\ start='"' end='"'
|
||||
\ contains=VueValue
|
||||
syntax match VueValue contained '\v\"\zs[^"]+\ze\"'
|
||||
\ contains=VueInject,@simpleJavascriptExpression
|
||||
|
||||
syntax match VueInject contained '\v\$\w*'
|
||||
|
||||
Reference in New Issue
Block a user