mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat(format-scripts): linewrap predicates
"format-ignore".kick()
This commit is contained in:
parent
a29058fe8b
commit
31641d72a4
57 changed files with 1622 additions and 1537 deletions
|
|
@ -15,17 +15,25 @@
|
|||
name: (_) @variable.parameter)
|
||||
|
||||
((simple_word) @variable.builtin
|
||||
(#any-of? @variable.builtin "argc" "argv" "argv0" "auto_path" "env" "errorCode" "errorInfo" "tcl_interactive" "tcl_library" "tcl_nonwordchars" "tcl_patchLevel" "tcl_pkgPath" "tcl_platform" "tcl_precision" "tcl_rcFileName" "tcl_traceCompile" "tcl_traceExec" "tcl_wordchars" "tcl_version"))
|
||||
(#any-of? @variable.builtin
|
||||
"argc" "argv" "argv0" "auto_path" "env" "errorCode" "errorInfo" "tcl_interactive" "tcl_library"
|
||||
"tcl_nonwordchars" "tcl_patchLevel" "tcl_pkgPath" "tcl_platform" "tcl_precision"
|
||||
"tcl_rcFileName" "tcl_traceCompile" "tcl_traceExec" "tcl_wordchars" "tcl_version"))
|
||||
|
||||
"expr" @function.builtin
|
||||
|
||||
(command
|
||||
name: (simple_word) @function.builtin
|
||||
(#any-of? @function.builtin "cd" "exec" "exit" "incr" "info" "join" "puts" "regexp" "regsub" "split" "subst" "trace" "source"))
|
||||
(#any-of? @function.builtin
|
||||
"cd" "exec" "exit" "incr" "info" "join" "puts" "regexp" "regsub" "split" "subst" "trace"
|
||||
"source"))
|
||||
|
||||
(command
|
||||
name: (simple_word) @keyword
|
||||
(#any-of? @keyword "append" "break" "catch" "continue" "default" "dict" "error" "eval" "global" "lappend" "lassign" "lindex" "linsert" "list" "llength" "lmap" "lrange" "lrepeat" "lreplace" "lreverse" "lsearch" "lset" "lsort" "package" "return" "switch" "throw" "unset" "variable"))
|
||||
(#any-of? @keyword
|
||||
"append" "break" "catch" "continue" "default" "dict" "error" "eval" "global" "lappend" "lassign"
|
||||
"lindex" "linsert" "list" "llength" "lmap" "lrange" "lrepeat" "lreplace" "lreverse" "lsearch"
|
||||
"lset" "lsort" "package" "return" "switch" "throw" "unset" "variable"))
|
||||
|
||||
[
|
||||
"error"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue