mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(wxml): rewrite with #lua-match?
This commit is contained in:
parent
a966cc608c
commit
954336fe5c
1 changed files with 11 additions and 2 deletions
|
|
@ -28,10 +28,19 @@
|
|||
(#any-of? @keyword.repeat "wx:for" "wx:for-index" "wx:for-item"))
|
||||
|
||||
((attribute_name) @keyword
|
||||
(#match? @keyword "^(bind|catch|mut-bind):?"))
|
||||
(#lua-match? @keyword "^bind"))
|
||||
|
||||
((attribute_name) @keyword
|
||||
(#match? @keyword "^(model:|data-)"))
|
||||
(#lua-match? @keyword "^catch"))
|
||||
|
||||
((attribute_name) @keyword
|
||||
(#lua-match? @keyword "^mut-bind"))
|
||||
|
||||
((attribute_name) @keyword
|
||||
(#lua-match? @keyword "^model:"))
|
||||
|
||||
((attribute_name) @keyword
|
||||
(#lua-match? @keyword "^data-"))
|
||||
|
||||
((attribute
|
||||
(attribute_name) @_attr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue