mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 00:40:06 -04:00
Use #any-of? instead of #match? where posible
This commit is contained in:
parent
55c5620aa3
commit
c699cc2e47
9 changed files with 31 additions and 15 deletions
|
|
@ -8,7 +8,10 @@
|
|||
|
||||
(
|
||||
(type_constructor) @type.builtin
|
||||
(#match? @type.builtin "^(int|char|bytes|string|float|bool|unit|exn|array|list|option|int32|int64|nativeint|format6|lazy_t)$")
|
||||
(#any-of? @type.builtin
|
||||
"int" "char" "bytes" "string" "float"
|
||||
"bool" "unit" "exn" "array" "list" "option"
|
||||
"int32" "int64" "nativeint" "format6" "lazy_t")
|
||||
)
|
||||
|
||||
[(class_name) (class_type_name) (type_constructor)] @type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue