From 5f950cdcb82d2cf74e6b30338897b3a4897f52b3 Mon Sep 17 00:00:00 2001 From: Phạm Huy Hoàng Date: Tue, 30 Jan 2024 22:19:54 +0700 Subject: fix(format): handle list with 300 nodes --- queries/gdscript/highlights.scm | 2 +- queries/gnuplot/highlights.scm | 4 +--- queries/make/highlights.scm | 3 +-- queries/matlab/highlights.scm | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) (limited to 'queries') 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) -- cgit v1.2.3-70-g09d2