From 6b93c7703384798aca46533258a8307d1fb3983a Mon Sep 17 00:00:00 2001 From: Gareth Widlansky <101901964+gerblesh@users.noreply.github.com> Date: Fri, 15 Aug 2025 06:30:23 -0700 Subject: [PATCH] add rainbows.scm for tsq (#14216) --- book/src/generated/lang-support.md | 2 +- runtime/queries/tsq/rainbows.scm | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/tsq/rainbows.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 8bfb7a27..5205c86c 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -254,7 +254,7 @@ | tlaplus | ✓ | | | | | | | todotxt | ✓ | | | | | | | toml | ✓ | ✓ | | | ✓ | `taplo`, `tombi` | -| tsq | ✓ | | | | | `ts_query_ls` | +| tsq | ✓ | | | | ✓ | `ts_query_ls` | | tsx | ✓ | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` | | twig | ✓ | | | | | | | typescript | ✓ | ✓ | ✓ | ✓ | ✓ | `typescript-language-server` | diff --git a/runtime/queries/tsq/rainbows.scm b/runtime/queries/tsq/rainbows.scm new file mode 100644 index 00000000..9001f07f --- /dev/null +++ b/runtime/queries/tsq/rainbows.scm @@ -0,0 +1,11 @@ +[ + (list) + (predicate) + (grouping) + (named_node) +] @rainbow.scope + +[ + "(" ")" + "[" "]" +] @rainbow.bracket -- 2.51.2