From a26ae18f63f658bca157d454e0913278e3356ece Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Mon, 10 Nov 2025 14:02:22 +0200 Subject: [PATCH] Adjust brackets.scm docs --- docs/src/extensions/languages.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.md index 7eb6a355dbfcafaa01ca885789d41e28c474d2f4..da4ceb345aff7cad26b8367a00845267977b1bde 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -154,6 +154,14 @@ This query identifies opening and closing brackets, braces, and quotation marks. | @open | Captures opening brackets, braces, and quotes | | @close | Captures closing brackets, braces, and quotes | +Later, Zed will use those to highlight matching brackets: painting each bracket pair with a different color ("rainbow brackets") and highlighting the brackets if the cursor is inside the bracket pair. + +To opt out of rainbow brackets colorization, add the following to the corresponding `brackets.scm` entry: + +```scheme +(("\"" @open "\"" @close) (#set! rainbow.exclude)) +``` + ### Code outline/structure The `outline.scm` file defines the structure for the code outline.