From 406812fe60318a92b57c20b1e5bd49db8026b140 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Thu, 27 Jul 2023 13:46:18 -0400 Subject: [PATCH] fix(c): update queries from upstream (#309) --- after/queries/c/matchup.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/after/queries/c/matchup.scm b/after/queries/c/matchup.scm index ba80408..48caa18 100644 --- a/after/queries/c/matchup.scm +++ b/after/queries/c/matchup.scm @@ -18,10 +18,16 @@ (case_statement "default" @mid.switch.2)?)) @scope.switch ; 'else' and 'else if' -(if_statement +(else_clause "else" @_start (if_statement "if" @_end)? (#make-range! "mid.if.1" @_start @_end)) +; if +((if_statement + "if" @open.if) @scope.if + (#not-has-parent? @scope.if else_clause)) + + ; if (compound_statement (if_statement