mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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
|
(command
|
||||||
name: [
|
name: [
|
||||||
(word) @function.builtin
|
(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
|
(comment) @comment
|
||||||
(test_option) @string
|
(test_option) @string
|
||||||
|
|
||||||
((word) @boolean
|
[(true) (false)] @boolean
|
||||||
(#match? @boolean "^(true|false)$"))
|
|
||||||
|
|
||||||
;; Error
|
;; Error
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue