diff options
| author | Phạm Huy Hoàng <hoangtun0810@gmail.com> | 2024-01-30 22:19:54 +0700 |
|---|---|---|
| committer | Phạm Huy Hoàng <hoangtun0810@gmail.com> | 2024-01-30 22:59:27 +0700 |
| commit | 5f950cdcb82d2cf74e6b30338897b3a4897f52b3 (patch) | |
| tree | 32f116d4c7f1b32df70c70b896f7ac0fc164eda9 /queries | |
| parent | fix(format): improve error message (diff) | |
| download | nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar.gz nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar.bz2 nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar.lz nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar.xz nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.tar.zst nvim-treesitter-5f950cdcb82d2cf74e6b30338897b3a4897f52b3.zip | |
fix(format): handle list with 300 nodes
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/gdscript/highlights.scm | 2 | ||||
| -rw-r--r-- | queries/gnuplot/highlights.scm | 4 | ||||
| -rw-r--r-- | queries/make/highlights.scm | 3 | ||||
| -rw-r--r-- | queries/matlab/highlights.scm | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/queries/gdscript/highlights.scm b/queries/gdscript/highlights.scm index 0e514eec7..f9d2b762f 100644 --- a/queries/gdscript/highlights.scm +++ b/queries/gdscript/highlights.scm @@ -277,9 +277,9 @@ )) ; Builtin Funcs +; format-ignore (call (identifier) @function.builtin - ; format-ignore (#any-of? @function.builtin ; @GlobalScope "abs" "absf" "absi" "acos" "asin" "atan" "atan2" "bezier_derivative" diff --git a/queries/gnuplot/highlights.scm b/queries/gnuplot/highlights.scm index 1ba789118..d8e546a03 100644 --- a/queries/gnuplot/highlights.scm +++ b/queries/gnuplot/highlights.scm @@ -165,8 +165,7 @@ "background" "rounded" "butt" - ]* - @attribute) + ]* @attribute) ; (t_canvas) ; (t_cgm) @@ -288,7 +287,6 @@ ] @variable.member ; Workaround because formatter cannot handle 300 list nodes -; format-ignore [ (angles) (clip) diff --git a/queries/make/highlights.scm b/queries/make/highlights.scm index 01b8438f5..38adac07f 100644 --- a/queries/make/highlights.scm +++ b/queries/make/highlights.scm @@ -74,8 +74,7 @@ ; ":::=" "?=" "!=" - ]? - @operator + ]? @operator "endef" @keyword) (variable_assignment diff --git a/queries/matlab/highlights.scm b/queries/matlab/highlights.scm index d92808078..a2ebc153a 100644 --- a/queries/matlab/highlights.scm +++ b/queries/matlab/highlights.scm @@ -116,8 +116,7 @@ [ "end" "endfunction" - ]? - @keyword.function) + ]? @keyword.function) (function_signature name: (identifier) @function) |
