From 8ae13272210c105a2b2126d61835e48996adef27 Mon Sep 17 00:00:00 2001 From: Pile of Oxides Date: Mon, 24 Nov 2025 15:51:09 +0100 Subject: [PATCH] Add rainbows.scm for fennel (#14815) --- book/src/generated/lang-support.md | 2 +- runtime/queries/fennel/rainbows.scm | 55 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/fennel/rainbows.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 707c46e9..d311674a 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -69,7 +69,7 @@ | erb | ✓ | | | | | | | erlang | ✓ | ✓ | | ✓ | ✓ | `erlang_ls`, `elp` | | esdl | ✓ | | | | | | -| fennel | ✓ | | | | | `fennel-ls` | +| fennel | ✓ | | | | ✓ | `fennel-ls` | | fga | ✓ | ✓ | ✓ | | | | | fidl | ✓ | | | | | | | fish | ✓ | ✓ | ✓ | | | `fish-lsp` | diff --git a/runtime/queries/fennel/rainbows.scm b/runtime/queries/fennel/rainbows.scm new file mode 100644 index 00000000..736356e5 --- /dev/null +++ b/runtime/queries/fennel/rainbows.scm @@ -0,0 +1,55 @@ +[ "(" ")" "[" "]" "{" "}" ] @rainbow.bracket +[ + ; quote & unquote + (quote_form) + (unquote_form) + + ; bindings + variables + (local_form) + (var_form) + (set_form) + (global_form) + + ; let + (let_form) + (let_vars) + + ; functions + (fn_form) + (lambda_form) + (hashfn_form) + + ; case & match + (case_form) + (case_catch) + (case_guard) + (case_guard_or_special) + (match_form) + + ; case-try & match-try + (case_try_form) + (match_try_form) + + ; each + (each_form) + (iter_body) + + ; if + (if_form) + + ; import-macros + (import_macros_form) + + ; macro + (macro_form) + + ; other + (list) + (list_binding) + (sequence) + (sequence_binding) + (sequence_arguments) + (table) + (table_binding) + (table_metadata) +] @rainbow.scope -- 2.51.2