Repository navigation
fix: match TSX highlighting roles in TSRX - #101
Merged
leonidaz merged 9 commits intoSep 16, 2026
Merged
Conversation
|
@jonkwheeler is attempting to deploy a commit to the Ripple Team Team on Vercel. A member of the Team first needs to authorize it. |
- avoid the key probe's fixture identifier collision
leonidaz
self-requested a review
September 16, 2026 16:57
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 755fd42. Configure here.
leonidaz
approved these changes
Sep 16, 2026
Merged
leonidaz
added a commit
that referenced
this pull request
Sep 16, 2026
* fix(grammar): recognize multiline JSX expression boundaries * fix(intellij): align embedded JSX member roles * chore: publish JSX highlighting parity * fix(review): apply review findings * fix(ci): make highlighting fixtures format-stable * Address PR review feedback (#101) - avoid the key probe's fixture identifier collision * feat(intellij): analyze rainbow bracket structure * feat(intellij): integrate optional Rainbow Brackets * test(intellij): prove Rainbow Brackets integration * docs(intellij): document Rainbow compatibility * perf(intellij): keep rainbow highlighting linear * fix(review): apply rainbow findings #1-#4 * docs(plan): record Rainbow Brackets delivery * fix(intellij): preserve nested JSX and align rainbow color cycles * chore: remove local Rainbow Brackets plan * style(intellij): format Rainbow Brackets fixture * test(intellij): use implicit output in template fixtures --------- Co-authored-by: Leonidas <[email protected]>
2 tasks done
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.

Summary
TSRX files now preserve shared TSX highlighting roles across JSX structure and embedded members in WebStorm, including JSX reached after multiline expression boundaries. Guarded grammar entry keeps comparison, shift, generic-call, generic-arrow, and type syntax out of JSX while a narrow IntelliJ adapter closes the member-role gap without requiring the JavaScript plugin.
This is the syntax-color parity slice of issue 100. Rainbow Brackets support remains separate follow-up work.
Design decisions
Validation
test,verifyPluginProjectConfiguration,buildPlugin,verifyPluginStructure, andverifyPluginpassed; Plugin Verifier reports compatibility with WS-252.27397.92.c2f3adf79c8b8c88af2e2457e23918a6de8ee89326bb87ded5d3580878a80f48.Unapplied review findings
packages/intellij-plugin/DEVELOPMENT.mdrecords the exact side-by-side procedure.Related: #100
Session-settled decisions carried from planning: syntax-color parity first (user-approved, over bundling Rainbow Brackets); token-role parity within one theme (user-approved, over pixel-identical native semantic highlighting).
Note
Low Risk
Changes are limited to TextMate scopes and an IntelliJ syntax-highlighter adapter with broad automated tests; no runtime, auth, or data-path impact.
Overview
Improves TSRX JSX syntax-color parity with TSX (issue #100) by fixing TextMate recognition of JSX after multiline expression boundaries and tightening how member calls vs standalone calls are scoped inside
{…}.The shared grammar now wires JSX tag rules into
expressionWithoutIdentifiersand tags dotted callees withmeta.method-call.jssomap-style members differ from bareformat()calls. VS Code gets expanded grammar tests for multiline JSX, comparison/generic false positives, and method vs function roles.IntelliJ/WebStorm no longer uses the stock TextMate highlighter alone:
TsrxSyntaxHighlighterFactorydelegates to TextMate but only augments property/method tokens inside JSX embedded expressions with WebStorm theme keys (TS.INSTANCE_MEMBER_*), leaving other tokens unchanged. Plugin docs add a manual Darcula side-by-side check against pairedissue-100fixtures.Reviewed by Cursor Bugbot for commit 16949e3. Bugbot is set up for automated code reviews on this repo. Configure here.