Skip to content

fix(ui): correct TextMate scope name from arbitrary-repitition to arb… - #40367

Open
why19970628 wants to merge 1 commit into
anomalyco:devfrom
why19970628:fix-repitition-typo
Open

fix(ui): correct TextMate scope name from arbitrary-repitition to arb…#40367
why19970628 wants to merge 1 commit into
anomalyco:devfrom
why19970628:fix-repitition-typo

Conversation

@why19970628

@why19970628 why19970628 commented Aug 4, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #40366

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The TextMate scope name in packages/ui/src/context/marked-theme.tsx:210 was misspelled as arbitrary-repitition instead of the correct arbitrary-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-repitition exist in the codebase.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

const scopes: string[] = []
for (const token of OpenCodeTheme.tokenColors) {
if (Array.isArray(token.scope)) {
scopes.push(...token.scope)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove tests, no need, just do the one line fix

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove tests, no need, just do the one line fix

Done. Removed the test file, keeping only the one-line fix.

@why19970628
why19970628 requested a review from Hona August 4, 2026 05:04
@why19970628
why19970628 force-pushed the fix-repitition-typo branch from d135efa to 3159e64 Compare August 4, 2026 05:29
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 4, 2026
@github-actions

github-actions Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Typo in TextMate scope name: "arbitrary-repitition" should be "arbitrary-repetition"

2 participants