Brainrot is a meme-inspired programming language that translates common programming keywords into internet slang and meme references. This VSCode extension provides syntax highlighting and basic language support for Brainrot files (.brainrot
).
skibidi main {
yapping("Hello, World!");
bussin 0;
}
In Brainrot:
skibidi
is equivalent tovoid
rizz
is equivalent toint
bussin
is equivalent toreturn
- And much more...
This extension adds:
- Syntax highlighting for Brainrot language keywords, operators, and built-in functions.
- File association for
.brainrot
files. - Basic language configuration (comments, brackets, etc.).
-
Clone this repository to your local machine:
git clone https://github.com/araujo88/brainrot-vscode-support.git cd brainrot-vscode-support
-
Open the project in VSCode:
code .
-
Install the required dependencies: Make sure you have Node.js installed. If not, download and install Node.js. Then, run:
npm install
-
Launch the extension in a new VSCode window: Press
F5
or go to the "Run and Debug" sidebar and select "Run Extension." This will open a new instance of VSCode with your extension loaded. -
Test the extension: Create or open a
.brainrot
file to see syntax highlighting in action.
-
Package the extension: Install the VSCode Extension Manager (
vsce
) if you haven't already:npm install -g @vscode/vsce
Run the following command to package the extension into a
.vsix
file:vsce package
This will create a file like
brainrot-x.y.z.vsix
. -
Install the packaged extension: Open VSCode and install the extension manually:
- Go to the Extensions view (
Ctrl+Shift+X
orCmd+Shift+X
on macOS). - Click the "..." menu in the top-right corner and select "Install from VSIX..."
- Navigate to the
.vsix
file you created and select it to install.
- Go to the Extensions view (
-
Reload VSCode: After installation, reload VSCode to ensure the extension is active.
-
Test the extension: Open a
.brainrot
file to see syntax highlighting and language features in action.
After following the installation steps, you can start writing Brainrot code in any file with a .brainrot
extension. VSCode will automatically apply syntax highlighting for recognized keywords and operators.
The following keywords are highlighted in Brainrot:
Brainrot | C Equivalent |
---|---|
skibidi | void |
rizz | int |
cap | bool |
cooked | auto |
flex | for |
bussin | return |
edging | if |
amogus | else |
goon | while |
bruh | break |
grind | continue |
chad | float |
gigachad | double |
yap | char |
grimace | const |
sigma rule | case |
based | default |
mewing | do |
gyatt | enum |
whopper | extern |
cringe | goto |
giga | long |
edgy | register |
soy | short |
nut | signed |
maxxing | sizeof |
salty | static |
gang | struct |
ohio | switch |
chungus | union |
nonut | unsigned |
schizo | volatile |
- Error reporting is minimal.
- No support for complex control structures like functions other than
main
. - Limited string manipulation capabilities.
Contributions are welcome! If you'd like to improve the extension, feel free to submit a pull request:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by meme culture and internet slang.
- Built using VSCode's TextMate grammar and language configuration.