[cpp] update grammar

This commit is contained in:
Martin Aeschlimann 2017-05-25 11:27:59 +02:00 committed by Dirk Baeumer
parent b135eef992
commit 78d9446b8f
2 changed files with 118 additions and 5 deletions

View file

@ -425,6 +425,9 @@
{
"match": "\\\\x\\h+",
"name": "constant.character.escape.cpp"
},
{
"include": "source.c#string_placeholder"
}
]
},
@ -455,5 +458,5 @@
]
}
},
"version": "https://github.com/atom/language-c/commit/a74c2f967d73e802a67fa6e971a8e8dedf076597"
"version": "https://github.com/atom/language-c/commit/3a269f88b12e512fb9495dc006a1dabf325d3d7f"
}

View file

@ -110,7 +110,29 @@
}
},
{
"c": "num_candidate_ret=%d:",
"c": "num_candidate_ret=",
"t": "source.cpp meta.function.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "%d",
"t": "source.cpp meta.function.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": ":",
"t": "source.cpp meta.function.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
@ -407,7 +429,18 @@
}
},
{
"c": "%d,",
"c": "%d",
"t": "source.cpp meta.function.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": ",",
"t": "source.cpp meta.function.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
@ -1375,7 +1408,7 @@
}
},
{
"c": "STYLE=Keramik;TITLE=%s;THEME=%s",
"c": "STYLE=Keramik;TITLE=",
"t": "source.cpp meta.block.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
@ -1385,6 +1418,39 @@
"hc_black": "string: #CE9178"
}
},
{
"c": "%s",
"t": "source.cpp meta.block.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": ";THEME=",
"t": "source.cpp meta.block.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "%s",
"t": "source.cpp meta.block.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "\"",
"t": "source.cpp meta.block.c string.quoted.double.cpp punctuation.definition.string.end.cpp",
@ -1705,7 +1771,51 @@
}
},
{
"c": "movw $0x38, %ax; ltr %ax",
"c": "movw $0x38, ",
"t": "source.cpp meta.block.c meta.function-call.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "%a",
"t": "source.cpp meta.block.c meta.function-call.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "x; ltr ",
"t": "source.cpp meta.block.c meta.function-call.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "%a",
"t": "source.cpp meta.block.c meta.function-call.c string.quoted.double.cpp constant.other.placeholder.c",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string: #A31515",
"dark_vs": "string: #CE9178",
"light_vs": "string: #A31515",
"hc_black": "string: #CE9178"
}
},
{
"c": "x",
"t": "source.cpp meta.block.c meta.function-call.c string.quoted.double.cpp",
"r": {
"dark_plus": "string: #CE9178",