mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-11 07:50: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
|
|
@ -109,7 +109,9 @@
|
|||
(call
|
||||
target:
|
||||
((identifier) @keyword.function
|
||||
(#any-of? @keyword.function "def" "defdelegate" "defexception" "defguard" "defguardp" "defimpl" "defmacro" "defmacrop" "defmodule" "defn" "defnp" "defoverridable" "defp" "defprotocol" "defstruct"))
|
||||
(#any-of? @keyword.function
|
||||
"def" "defdelegate" "defexception" "defguard" "defguardp" "defimpl" "defmacro" "defmacrop"
|
||||
"defmodule" "defn" "defnp" "defoverridable" "defp" "defprotocol" "defstruct"))
|
||||
(arguments
|
||||
[
|
||||
(call
|
||||
|
|
@ -126,7 +128,9 @@
|
|||
(call
|
||||
target:
|
||||
((identifier) @keyword
|
||||
(#any-of? @keyword "alias" "case" "catch" "cond" "else" "for" "if" "import" "quote" "raise" "receive" "require" "reraise" "super" "throw" "try" "unless" "unquote" "unquote_splicing" "use" "with")))
|
||||
(#any-of? @keyword
|
||||
"alias" "case" "catch" "cond" "else" "for" "if" "import" "quote" "raise" "receive" "require"
|
||||
"reraise" "super" "throw" "try" "unless" "unquote" "unquote_splicing" "use" "with")))
|
||||
|
||||
; Special Constants
|
||||
((identifier) @constant.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue