mirror of
https://github.com/open-goal/opengoal-vscode.git
synced 2024-10-19 04:37:37 -04:00
ir2: highlight mips2c blocks as cpp
(#159)
This commit is contained in:
parent
85e57f065a
commit
7a9e787da3
|
@ -445,7 +445,8 @@
|
|||
"scopeName": "source.opengoal-ir",
|
||||
"path": "./syntaxes/opengoal-ir.tmLanguage.json",
|
||||
"embeddedLanguages": {
|
||||
"meta.embedded.block.opengoal": "opengoal"
|
||||
"meta.embedded.block.opengoal": "opengoal",
|
||||
"meta.embedded.block.mips2c": "cpp"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
{
|
||||
"include": "#goalCode"
|
||||
},
|
||||
{
|
||||
"include": "#mips2c"
|
||||
},
|
||||
{
|
||||
"include": "#errorsAndWarnings"
|
||||
},
|
||||
|
@ -23,6 +26,16 @@
|
|||
}
|
||||
],
|
||||
"repository": {
|
||||
"mips2c": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.embedded.block.mips2c",
|
||||
"begin": ";;-\\*-MIPS2C-Start-\\*-",
|
||||
"end": ";;-\\*-MIPS2C-End-\\*-",
|
||||
"patterns": [{ "include": "source.cpp" }]
|
||||
}
|
||||
]
|
||||
},
|
||||
"goalCode": {
|
||||
"patterns": [
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue