diff options
| author | Omar Zeghouani <omarzeghouanii@gmail.com> | 2021-06-06 17:41:52 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-06-06 23:10:00 +0200 |
| commit | 1289f56fe9f7514ce66482010242cbcf8a9d7509 (patch) | |
| tree | 4a163f8808cded1cd39b3ff7ad95a97662814b90 /queries/fish | |
| parent | b5d603a876fe8c89e96a9cac2dac2dd375479dac (diff) | |
Use any_of predicate for builtin functions
Diffstat (limited to 'queries/fish')
| -rw-r--r-- | queries/fish/highlights.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/queries/fish/highlights.scm b/queries/fish/highlights.scm index 4502c2e1..79fbced4 100644 --- a/queries/fish/highlights.scm +++ b/queries/fish/highlights.scm @@ -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 |
