Skip to content

fix: sync syntax highlighting and keyword table with brainrot language - #16

Merged
leo-aa88 merged 1 commit into
mainfrom
fix/keyword-drift-sync
Aug 16, 2026
Merged

fix: sync syntax highlighting and keyword table with brainrot language#16
leo-aa88 merged 1 commit into
mainfrom
fix/keyword-drift-sync

Conversation

@leo-aa88

Copy link
Copy Markdown
Member

Summary

  • syntaxes/brainrot.tmLanguage.json: remove sus, which was never a real Brainrot keyword (no trace of it in the brainrot lexer, ever); add the missing bet builtin (stdrot/bet.c); fix the builtin-function regex — it was missing the outer grouping parens, so only yapping and the trailing alternative got a \b boundary while baka, yappin, ragequit, chill did not.
  • README.md keyword table: grimace → const was stale — that keyword was renamed to deadass upstream a while back. cooked → auto was flat-out wrong — #cooked is an unimplemented preprocessor directive (#include equivalent), not a keyword, and auto isn't a Brainrot keyword at all. Added the missing thicc → long long and rant → string type rows.
  • CHANGELOG.md: noted the fix under Unreleased.

Cross-checked against lang.l, lang.y, and docs/ in Brainrotlang/brainrot (source of truth).

Test plan

  • python3 -m json.tool syntaxes/brainrot.tmLanguage.json — valid JSON
  • Verified the fixed builtin-function regex against a sample snippet using bet, baka, slorp, yapping — all four match correctly with word boundaries
  • Manually diffed the keyword table against the brainrot README's keyword table

🤖 Generated with Claude Code

- tmLanguage.json: remove `sus`, which was never a real Brainrot keyword;
  add the missing `bet` builtin; fix the builtin-function regex so every
  alternative gets a word boundary (previously only the first/last did)
- README: fix the keyword table — `grimace` was renamed to `deadass`
  upstream long ago, and `cooked`/`auto` was never a real keyword pairing
  (`#cooked` is an unimplemented preprocessor directive, and `auto` isn't
  a Brainrot keyword at all); add the missing `thicc` and `rant` rows

Cross-checked against lang.l/lang.y/docs in the brainrot interpreter repo
(source of truth).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@leo-aa88
leo-aa88 merged commit 3ef5984 into main Aug 16, 2026
5 checks passed
@leo-aa88
leo-aa88 deleted the fix/keyword-drift-sync branch August 16, 2026 18:49
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.

1 participant