Repository navigation
feat(intellij): color TSRX nesting with Rainbow Brackets - #103
Merged
Merged
Conversation
- avoid the key probe's fixture identifier collision
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
leonidaz
changed the base branch from
jon/intellij-tsx-highlighting-parity
to
main
September 16, 2026 17:45
Merged
2 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds optional Rainbow Brackets coloring for TSRX JavaScript delimiters, JSX tags and fragments, embedded expressions, dynamic tags, and
@{}blocks. Builds on the highlighting fixes merged in #101 and now targetsmain.The integration uses TextMate scopes and the standard Rainbow Brackets plugin's theme keys and settings. Rainbow remains optional and its classes/JAR are not bundled into the TSRX plugin.
Correctness and compatibility
Validation
The hands-on IDE smoke test for installed/absent companion-plugin states and interactive editing has not been run; the procedure is documented in
packages/intellij-plugin/DEVELOPMENT.md.Related: #100.
Note
Medium Risk
New editor highlighting path with non-trivial structural parsing, but it is optional, fails closed without Rainbow, and is heavily covered by platform tests; risk is mainly regressions in IDE performance or highlight correctness on large files.
Overview
Adds optional structural bracket coloring for
.tsrxwhen the standard Rainbow Brackets plugin (2025.3.12) is installed. The TSRX ZIP declares that plugin as an optional dependency and loads a companion descriptor that registersTsrxRainbowBracketsHighlightVisitor; Rainbow’s JAR and classes are not bundled.A TextMate-lexer-driven analyzer pairs JS/TS delimiters,
@{}template blocks, JSX tags (including nested-in-attribute and dynamic tags), fragments, and embedded expressions, then assigns nesting levels to match native TSX cycling (mixed-family vs per-family) while reusing Rainbow’s settings and color keys via a guarded adapter. Invalid or crossing structures are dropped; baseline TextMate highlighting remains when Rainbow is absent.Gradle pulls Rainbow only for dev/test sandboxes; tests cover analyzer behavior, visitor eligibility, TSX color-key parity, packaging, and docs/smoke steps in
DEVELOPMENT.mdandREADME.md.Reviewed by Cursor Bugbot for commit 33c353e. Bugbot is set up for automated code reviews on this repo. Configure here.