mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 02:58:56 +01:00
Update grammars
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/jeff-hykin/cpp-textmate-grammar/commit/218448eb46260864352d569db13be6cb20767e92",
|
||||
"version": "https://github.com/jeff-hykin/cpp-textmate-grammar/commit/bc7dedd28eebe52b374744d3fb34d77ff441569e",
|
||||
"name": "Objective-C++",
|
||||
"scopeName": "source.objcpp",
|
||||
"patterns": [
|
||||
@@ -293,6 +293,186 @@
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"bracketed_content": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.begin.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.end.objcpp"
|
||||
}
|
||||
},
|
||||
"name": "meta.bracketed.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\])",
|
||||
"name": "meta.function-call.predicate.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\bargument(Array|s)(:)",
|
||||
"name": "support.function.any-method.name-of-parameter.objcpp"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\b\\w+(:)",
|
||||
"name": "invalid.illegal.unknown-method.objcpp"
|
||||
},
|
||||
{
|
||||
"begin": "@\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.objcpp"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(AND|OR|NOT|IN)\\b",
|
||||
"name": "keyword.operator.logical.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(ALL|ANY|SOME|NONE)\\b",
|
||||
"name": "constant.language.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\b",
|
||||
"name": "constant.language.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\b",
|
||||
"name": "keyword.operator.comparison.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\bC(ASEINSENSITIVE|I)\\b",
|
||||
"name": "keyword.other.modifier.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\b",
|
||||
"name": "keyword.other.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-zA-Z0-9]+)",
|
||||
"name": "constant.character.escape.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unknown-escape.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?=\\w)(?<=[\\w\\])\"] )(\\w+(?:(:)|(?=\\])))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\])",
|
||||
"name": "meta.function-call.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\b\\w+(:)",
|
||||
"name": "support.function.any-method.name-of-parameter.objcpp"
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"c_functions": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.support.function.leading.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.C99.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "(\\s*)\\b(hypot(f|l)?|s(scanf|ystem|nprintf|ca(nf|lb(n(f|l)?|ln(f|l)?))|i(n(h(f|l)?|f|l)?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt(f|l)?|w(scanf|printf)|rand)|n(e(arbyint(f|l)?|xt(toward(f|l)?|after(f|l)?))|an(f|l)?)|c(s(in(h(f|l)?|f|l)?|qrt(f|l)?)|cos(h(f)?|f|l)?|imag(f|l)?|t(ime|an(h(f|l)?|f|l)?)|o(s(h(f|l)?|f|l)?|nj(f|l)?|pysign(f|l)?)|p(ow(f|l)?|roj(f|l)?)|e(il(f|l)?|xp(f|l)?)|l(o(ck|g(f|l)?)|earerr)|a(sin(h(f|l)?|f|l)?|cos(h(f|l)?|f|l)?|tan(h(f|l)?|f|l)?|lloc|rg(f|l)?|bs(f|l)?)|real(f|l)?|brt(f|l)?)|t(ime|o(upper|lower)|an(h(f|l)?|f|l)?|runc(f|l)?|gamma(f|l)?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb(f|l)?|max(div|abs))|di(v|fftime)|_Exit|unget(c|wc)|p(ow(f|l)?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c(f|l)?|f|l)?|x(it|p(2(f|l)?|f|l|m1(f|l)?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim(f|l)?|p(classify|ut(s|c|w(s|c))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor(f|l)?|abs(f|l)?|get(s|c|pos|w(s|c))|re(open|e|ad|xp(f|l)?)|m(in(f|l)?|od(f|l)?|a(f|l|x(f|l)?)?))|l(d(iv|exp(f|l)?)|o(ngjmp|cal(time|econv)|g(1(p(f|l)?|0(f|l)?)|2(f|l)?|f|l|b(f|l)?)?)|abs|l(div|abs|r(int(f|l)?|ound(f|l)?))|r(int(f|l)?|ound(f|l)?)|gamma(f|l)?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(b|mb)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h(f|l)?|f|l)?)|cos(h(f|l)?|f|l)?|t(o(i|f|l(l)?)|exit|an(h(f|l)?|2(f|l)?|f|l)?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int(f|l)?|ound(f|l)?|e(name|alloc|wind|m(ove|quo(f|l)?|ainder(f|l)?))|a(nd|ise))|b(search|towc)|m(odf(f|l)?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.function-call.leading.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.parameters.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "(?x) (?: (?= \\s ) (?:(?<=else|new|return) | (?<!\\w)) (\\s+))?\n \t\t\t(\\b \n \t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n \t\t\t)\n \t\t\t \\s*(\\()",
|
||||
"name": "meta.function-call.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"c_lang": {
|
||||
"patterns": [
|
||||
{
|
||||
@@ -2876,6 +3056,47 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.objcpp"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-slash.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?>\\\\\\s*\\n)",
|
||||
"name": "punctuation.separator.continuation.objcpp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"cpp_lang": {
|
||||
"patterns": [
|
||||
{
|
||||
@@ -6365,255 +6586,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"string_escaped_char": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x)\\\\ (\n\\\\\t\t\t |\n[abefnprtv'\"?] |\n[0-3]\\d{,2}\t |\n[4-7]\\d?\t\t|\nx[a-fA-F0-9]{,2} |\nu[a-fA-F0-9]{,4} |\nU[a-fA-F0-9]{,8} )",
|
||||
"name": "constant.character.escape.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unknown-escape.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_placeholder": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x) %\n(\\d+\\$)?\t\t\t\t\t\t # field (argument #)\n[#0\\- +']*\t\t\t\t\t\t # flags\n[,;:_]?\t\t\t\t\t\t\t # separator character (AltiVec)\n((-?\\d+)|\\*(-?\\d+\\$)?)?\t\t # minimum field width\n(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?\t# precision\n(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n[diouxXDOUeEfFgGaACcSspn%]\t\t # conversion type",
|
||||
"name": "constant.other.placeholder.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "(%)(?!\"\\s*(PRI|SCN))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "invalid.illegal.placeholder.objcpp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"bracketed_content": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.begin.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.end.objcpp"
|
||||
}
|
||||
},
|
||||
"name": "meta.bracketed.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?=predicateWithFormat:)(?<=NSPredicate )(predicateWithFormat:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\])",
|
||||
"name": "meta.function-call.predicate.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\bargument(Array|s)(:)",
|
||||
"name": "support.function.any-method.name-of-parameter.objcpp"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\b\\w+(:)",
|
||||
"name": "invalid.illegal.unknown-method.objcpp"
|
||||
},
|
||||
{
|
||||
"begin": "@\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.objcpp"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(AND|OR|NOT|IN)\\b",
|
||||
"name": "keyword.operator.logical.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(ALL|ANY|SOME|NONE)\\b",
|
||||
"name": "constant.language.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(NULL|NIL|SELF|TRUE|YES|FALSE|NO|FIRST|LAST|SIZE)\\b",
|
||||
"name": "constant.language.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(MATCHES|CONTAINS|BEGINSWITH|ENDSWITH|BETWEEN)\\b",
|
||||
"name": "keyword.operator.comparison.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\bC(ASEINSENSITIVE|I)\\b",
|
||||
"name": "keyword.other.modifier.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(ANYKEY|SUBQUERY|CAST|TRUEPREDICATE|FALSEPREDICATE)\\b",
|
||||
"name": "keyword.other.predicate.cocoa.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\(\\\\|[abefnrtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-zA-Z0-9]+)",
|
||||
"name": "constant.character.escape.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unknown-escape.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?=\\w)(?<=[\\w\\])\"] )(\\w+(?:(:)|(?=\\])))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\])",
|
||||
"name": "meta.function-call.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.arguments.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "\\b\\w+(:)",
|
||||
"name": "support.function.any-method.name-of-parameter.objcpp"
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#special_variables"
|
||||
},
|
||||
{
|
||||
"include": "#c_functions"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"c_functions": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.support.function.leading.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.C99.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "(\\s*)\\b(hypot(f|l)?|s(scanf|ystem|nprintf|ca(nf|lb(n(f|l)?|ln(f|l)?))|i(n(h(f|l)?|f|l)?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt(f|l)?|w(scanf|printf)|rand)|n(e(arbyint(f|l)?|xt(toward(f|l)?|after(f|l)?))|an(f|l)?)|c(s(in(h(f|l)?|f|l)?|qrt(f|l)?)|cos(h(f)?|f|l)?|imag(f|l)?|t(ime|an(h(f|l)?|f|l)?)|o(s(h(f|l)?|f|l)?|nj(f|l)?|pysign(f|l)?)|p(ow(f|l)?|roj(f|l)?)|e(il(f|l)?|xp(f|l)?)|l(o(ck|g(f|l)?)|earerr)|a(sin(h(f|l)?|f|l)?|cos(h(f|l)?|f|l)?|tan(h(f|l)?|f|l)?|lloc|rg(f|l)?|bs(f|l)?)|real(f|l)?|brt(f|l)?)|t(ime|o(upper|lower)|an(h(f|l)?|f|l)?|runc(f|l)?|gamma(f|l)?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb(f|l)?|max(div|abs))|di(v|fftime)|_Exit|unget(c|wc)|p(ow(f|l)?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c(f|l)?|f|l)?|x(it|p(2(f|l)?|f|l|m1(f|l)?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim(f|l)?|p(classify|ut(s|c|w(s|c))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor(f|l)?|abs(f|l)?|get(s|c|pos|w(s|c))|re(open|e|ad|xp(f|l)?)|m(in(f|l)?|od(f|l)?|a(f|l|x(f|l)?)?))|l(d(iv|exp(f|l)?)|o(ngjmp|cal(time|econv)|g(1(p(f|l)?|0(f|l)?)|2(f|l)?|f|l|b(f|l)?)?)|abs|l(div|abs|r(int(f|l)?|ound(f|l)?))|r(int(f|l)?|ound(f|l)?)|gamma(f|l)?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(b|mb)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h(f|l)?|f|l)?)|cos(h(f|l)?|f|l)?|t(o(i|f|l(l)?)|exit|an(h(f|l)?|2(f|l)?|f|l)?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int(f|l)?|ound(f|l)?|e(name|alloc|wind|m(ove|quo(f|l)?|ainder(f|l)?))|a(nd|ise))|b(search|towc)|m(odf(f|l)?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.function-call.leading.objcpp"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.any-method.objcpp"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.parameters.objcpp"
|
||||
}
|
||||
},
|
||||
"match": "(?x) (?: (?= \\s ) (?:(?<=else|new|return) | (?<!\\w)) (\\s+))?\n \t\t\t(\\b \n \t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n \t\t\t)\n \t\t\t \\s*(\\()",
|
||||
"name": "meta.function-call.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.objcpp"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.objcpp"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-slash.objcpp",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?>\\\\\\s*\\n)",
|
||||
"name": "punctuation.separator.continuation.objcpp"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabled": {
|
||||
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
||||
"comment": "eat nested preprocessor if(def)s",
|
||||
@@ -7093,6 +7065,34 @@
|
||||
"name": "variable.language.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_escaped_char": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x)\\\\ (\n\\\\\t\t\t |\n[abefnprtv'\"?] |\n[0-3]\\d{,2}\t |\n[4-7]\\d?\t\t|\nx[a-fA-F0-9]{,2} |\nu[a-fA-F0-9]{,4} |\nU[a-fA-F0-9]{,8} )",
|
||||
"name": "constant.character.escape.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unknown-escape.objcpp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_placeholder": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x) %\n(\\d+\\$)?\t\t\t\t\t\t # field (argument #)\n[#0\\- +']*\t\t\t\t\t\t # flags\n[,;:_]?\t\t\t\t\t\t\t # separator character (AltiVec)\n((-?\\d+)|\\*(-?\\d+\\$)?)?\t\t # minimum field width\n(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)?\t# precision\n(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n[diouxXDOUeEfFgGaACcSspn%]\t\t # conversion type",
|
||||
"name": "constant.other.placeholder.objcpp"
|
||||
},
|
||||
{
|
||||
"match": "(%)(?!\"\\s*(PRI|SCN))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "invalid.illegal.placeholder.objcpp"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user