brainrotscript
Version:
๐ง A brainrot programming language that compiles to JavaScript - because why write normal code when you can write code that's absolutely sending you? ๐
216 lines โข 7.88 kB
JSON
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "BrainrotScript",
"scopeName": "source.brainrotscript",
"patterns": [
{
"include": "#comments"
},
{
"include": "#strings"
},
{
"include": "#brainrot-keywords"
},
{
"include": "#numbers"
},
{
"include": "#operators"
},
{
"include": "#punctuation"
}
],
"repository": {
"brainrot-keywords": {
"patterns": [
{
"name": "keyword.control.flow.brainrotscript",
"match": "\\b(job_application|its_giving|vibe_check|big_yikes|flex|goon|switch_up|lane|mid|rage_quit|skip_ahead|one_shot)\\b"
},
{
"name": "keyword.control.trycatch.brainrotscript",
"match": "\\b(fuck_around|caught_4k|yeet)\\b"
},
{
"name": "keyword.control.async.brainrotscript",
"match": "\\b(brb|hold_up)\\b"
},
{
"name": "storage.type.brainrotscript",
"match": "\\b(lock_in|whatever|wild)\\b"
},
{
"name": "storage.modifier.brainrotscript",
"match": "\\b(spawn|squad|me_fr|alpha|inherits_drip|low_key|strapped|high_key|pinned)\\b"
},
{
"name": "constant.language.boolean.brainrotscript",
"match": "\\b(wallahi|no_cap)\\b"
},
{
"name": "constant.language.null.brainrotscript",
"match": "\\b(ghost)\\b"
},
{
"name": "keyword.operator.type.brainrotscript",
"match": "\\b(what_is|same_energy)\\b"
},
{
"name": "keyword.control.import.brainrotscript",
"match": "\\b(yoink|drop)\\b"
},
{
"name": "keyword.other.brainrotscript",
"match": "\\b(spill_tea|in_the_mix|wit|dead|nuke|pause|cop|vibe_surface|lootbox)\\b"
}
]
},
"strings": {
"patterns": [
{
"name": "string.quoted.double.brainrotscript",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.brainrotscript",
"match": "\\\\."
}
]
},
{
"name": "string.quoted.single.brainrotscript",
"begin": "'",
"end": "'",
"patterns": [
{
"name": "constant.character.escape.brainrotscript",
"match": "\\\\."
}
]
},
{
"name": "string.template.brainrotscript",
"begin": "`",
"end": "`",
"patterns": [
{
"name": "meta.embedded.line.brainrotscript",
"begin": "\\$\\{",
"end": "\\}",
"patterns": [
{
"include": "source.brainrotscript"
}
]
},
{
"name": "constant.character.escape.brainrotscript",
"match": "\\\\."
}
]
}
]
},
"comments": {
"patterns": [
{
"name": "comment.line.double-slash.brainrotscript",
"begin": "//",
"end": "$",
"patterns": [
{
"name": "markup.bold.comment.brainrotscript",
"match": "๐|๐ง |๐ฅ|๐|โ
|โ|๐ธ|๐ป|๐งข"
}
]
},
{
"name": "comment.block.brainrotscript",
"begin": "/\\*",
"end": "\\*/",
"patterns": [
{
"name": "markup.bold.comment.brainrotscript",
"match": "๐|๐ง |๐ฅ|๐|โ
|โ|๐ธ|๐ป|๐งข"
}
]
}
]
},
"numbers": {
"patterns": [
{
"name": "constant.numeric.decimal.brainrotscript",
"match": "\\b\\d+(?:\\.\\d+)?(?:[eE][+-]?\\d+)?\\b"
},
{
"name": "constant.numeric.hex.brainrotscript",
"match": "\\b0[xX][0-9a-fA-F]+\\b"
},
{
"name": "constant.numeric.binary.brainrotscript",
"match": "\\b0[bB][01]+\\b"
},
{
"name": "constant.numeric.octal.brainrotscript",
"match": "\\b0[oO][0-7]+\\b"
}
]
},
"operators": {
"patterns": [
{
"name": "keyword.operator.arithmetic.brainrotscript",
"match": "\\+\\+|--|\\+|\\-|\\*|\\/|%|\\*\\*"
},
{
"name": "keyword.operator.comparison.brainrotscript",
"match": "===|!==|==|!=|<=|>=|<|>"
},
{
"name": "keyword.operator.logical.brainrotscript",
"match": "&&|\\|\\||!"
},
{
"name": "keyword.operator.assignment.brainrotscript",
"match": "=|\\+=|\\-=|\\*=|\\/=|%=|\\*\\*="
},
{
"name": "keyword.operator.bitwise.brainrotscript",
"match": "&|\\||\\^|~|<<|>>|>>>"
}
]
},
"punctuation": {
"patterns": [
{
"name": "punctuation.terminator.statement.brainrotscript",
"match": ";"
},
{
"name": "punctuation.separator.comma.brainrotscript",
"match": ","
},
{
"name": "punctuation.accessor.brainrotscript",
"match": "\\."
},
{
"name": "punctuation.definition.block.brainrotscript",
"match": "[{}]"
},
{
"name": "punctuation.definition.array.brainrotscript",
"match": "[\\[\\]]"
},
{
"name": "punctuation.definition.parameters.brainrotscript",
"match": "[()]"
}
]
}
}
}