mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-28 22:02:37 +01:00
This applies to files named *.semir, but more interestingly also to Carbon source lines starting `// CHECK:STDOUT:`. Assisted-by: Gemini 3.1 Pro via Antigravity
22 lines
469 B
JSON
22 lines
469 B
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
"scopeName": "source.carbon-check-test",
|
|
"injectionSelector": "L:source.carbon",
|
|
"patterns": [
|
|
{
|
|
"begin": "^(\\s*//\\s*CHECK:STDOUT:)",
|
|
"beginCaptures": {
|
|
"1": {
|
|
"name": "comment.line.carbon"
|
|
}
|
|
},
|
|
"end": "$",
|
|
"patterns": [
|
|
{
|
|
"include": "source.carbon-semir"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|