fix(ui): correct TextMate scope name from arbitrary-repitition to arb… - #40367
Open
why19970628 wants to merge 1 commit into
Open
fix(ui): correct TextMate scope name from arbitrary-repitition to arb…#40367why19970628 wants to merge 1 commit into
why19970628 wants to merge 1 commit into
Conversation
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Hona
requested changes
Aug 4, 2026
| const scopes: string[] = [] | ||
| for (const token of OpenCodeTheme.tokenColors) { | ||
| if (Array.isArray(token.scope)) { | ||
| scopes.push(...token.scope) |
Member
There was a problem hiding this comment.
can you remove tests, no need, just do the one line fix
Author
There was a problem hiding this comment.
can you remove tests, no need, just do the one line fix
Done. Removed the test file, keeping only the one-line fix.
…itrary-repetition
why19970628
force-pushed
the
fix-repitition-typo
branch
from
August 4, 2026 05:29
d135efa to
3159e64
Compare
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
3 tasks
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.
Issue for this PR
Closes #40366
Type of change
What does this PR do?
The TextMate scope name in
packages/ui/src/context/marked-theme.tsx:210was misspelled asarbitrary-repititioninstead of the correctarbitrary-repetition. This means the scope wouldn't match the standard TextMate grammar rule for regex highlighting.How did you verify your code works?
Confirmed the scope name is a standard TextMate grammar scope. Verified no other references to the misspelled
arbitrary-repititionexist in the codebase.Screenshots / recordings
N/A
Checklist