mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
Use any_of predicate for builtin functions
This commit is contained in:
parent
b5d603a876
commit
1289f56fe9
1 changed files with 2 additions and 3 deletions
|
|
@ -109,7 +109,7 @@
|
|||
(command
|
||||
name: [
|
||||
(word) @function.builtin
|
||||
(#match? @function.builtin "^(.|:|_|alias|argparse|bg|bind|block|breakpoint|builtin|cd|command|commandline|complete|contains|count|disown|echo|emit|eval|exec|exit|fg|functions|history|isatty|jobs|math|printf|pwd|random|read|realpath|set|set_color|source|status|string|time|type|ulimit|wait)$")
|
||||
(#any-of? @function.builtin "." ":" "_" "alias" "argparse" "bg" "bind" "block" "breakpoint" "builtin" "cd" "command" "commandline" "complete" "contains" "count" "disown" "echo" "emit" "eval" "exec" "exit" "fg" "functions" "history" "isatty" "jobs" "math" "printf" "pwd" "random" "read" "realpath" "set" "set_color" "source" "status" "string" "test" "time" "type" "ulimit" "wait")
|
||||
]
|
||||
)
|
||||
|
||||
|
|
@ -148,8 +148,7 @@
|
|||
(comment) @comment
|
||||
(test_option) @string
|
||||
|
||||
((word) @boolean
|
||||
(#match? @boolean "^(true|false)$"))
|
||||
[(true) (false)] @boolean
|
||||
|
||||
;; Error
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue