From 96133f57ea095155523a4060905a30e6c0685cfa Mon Sep 17 00:00:00 2001 From: "Andy K. Massimino" Date: Sat, 6 May 2023 21:41:38 -0400 Subject: [PATCH] Add TS quote query for a few languages, re #287 --- after/queries/c/matchup.scm | 2 ++ after/queries/cpp/matchup.scm | 2 +- after/queries/html/matchup.scm | 2 ++ after/queries/rust/matchup.scm | 2 ++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/after/queries/c/matchup.scm b/after/queries/c/matchup.scm index e8f9264..d4990d6 100644 --- a/after/queries/c/matchup.scm +++ b/after/queries/c/matchup.scm @@ -1,3 +1,5 @@ +; inherits: quote + (preproc_ifdef ["#ifdef" "#ifndef"] @open.def "#endif" @close.def) @scope.def diff --git a/after/queries/cpp/matchup.scm b/after/queries/cpp/matchup.scm index 7f8f292..22039c9 100644 --- a/after/queries/cpp/matchup.scm +++ b/after/queries/cpp/matchup.scm @@ -1,4 +1,4 @@ -; inherits: c,quote +; inherits: c (template_parameter_list "<" @open.template diff --git a/after/queries/html/matchup.scm b/after/queries/html/matchup.scm index abf5861..735233f 100644 --- a/after/queries/html/matchup.scm +++ b/after/queries/html/matchup.scm @@ -1,3 +1,5 @@ +; inherits: quote + [ (element) (script_element) diff --git a/after/queries/rust/matchup.scm b/after/queries/rust/matchup.scm index ccd866a..e0da827 100644 --- a/after/queries/rust/matchup.scm +++ b/after/queries/rust/matchup.scm @@ -1,3 +1,5 @@ +; inherits: quote + ; --------------- if/else --------------- (block (if_expression "if" @open.if_) @scope.if_) (expression_statement (if_expression "if" @open.if_) @scope.if_)