/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
utils/vscode/carbon-testdata.tmLanguage.json
56 строк
1 KB
Richard Smith
Use C++ formatting for C++ splits in testdata files. (#7385)
18 июн 2026, 17:47
Не верифицирован
18 июн 2026, 17:47
805dca1
Код
Авторство
О чём код?
{ "$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json", "name": "carbon-testdata", "scopeName": "source.carbon-testdata", "fileTypes": [], "patterns": [ { "include": "#cpp-file-splits" }, { "include": "#check-stdout" }, { "include": "source.carbon" } ], "repository": { "cpp-file-splits": { "patterns": [ { "comment": "C++ file split in test files", "begin": "^//\\s*---\\s*([^\\s]+\\.(h|hh|hpp|hxx|h\\+\\+|cpp|cc|cxx|c\\+\\+|c|H|HH|HPP|HXX|H\\+\\+|CPP|CC|CXX|C\\+\\+|C))\\s*$", "beginCaptures": { "0": { "name": "comment.line.carbon" } }, "end": "^(?=//\\s*---)", "contentName": "meta.embedded.block.cpp", "patterns": [ { "include": "source.cpp" } ] } ] }, "check-stdout": { "patterns": [ { "comment": "Highlight compile output / SemIR in CHECK:STDOUT lines", "begin": "^(\\s*//\\s*CHECK:STDOUT:)", "beginCaptures": { "1": { "name": "comment.line.carbon" } }, "end": "$", "patterns": [ { "include": "source.carbon-semir" } ] } ] } } }