{ "aliases": [ "csharp", "c#" ], "keywords": { "keyword": "abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield", "literal": "null false true" }, "illegal": "::", "contains": [ { "className": "comment", "begin": "\/\/\/", "end": "$", "contains": [ { "className": "doctag", "variants": [ { "begin": "\/\/\/", "relevance": 0 }, { "begin": "" }, { "begin": "<\/?", "end": ">" } ] }, { "begin": "\\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\\b" }, { "className": "doctag", "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):", "relevance": 0 } ], "returnBegin": true }, { "className": "comment", "begin": "\/\/", "end": "$", "contains": [ { "$ref": "#contains.0.contains.1" }, { "className": "doctag", "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):", "relevance": 0 } ] }, { "className": "comment", "begin": "\/\\*", "end": "\\*\/", "contains": [ { "$ref": "#contains.0.contains.1" }, { "className": "doctag", "begin": "(?:TODO|FIXME|NOTE|BUG|XXX):", "relevance": 0 } ] }, { "className": "meta", "begin": "#", "end": "$", "keywords": { "meta-keyword": "if else elif endif define undef warning error line region endregion pragma checksum" } }, { "variants": [ { "className": "string", "begin": "\\$@\"", "end": "\"", "contains": [ { "begin": "{{" }, { "begin": "}}" }, { "begin": "\"\"" }, { "className": "subst", "begin": "{", "end": "}", "keywords": { "$ref": "#keywords" }, "contains": [ { "$ref": "#contains.4.variants.0" }, { "className": "string", "begin": "\\$\"", "end": "\"", "illegal": "\\n", "contains": [ { "begin": "{{" }, { "begin": "}}" }, { "begin": "\\\\[\\s\\S]", "relevance": 0 }, { "className": "subst", "begin": "{", "end": "}", "keywords": { "$ref": "#keywords" }, "illegal": "\\n", "contains": [ { "className": "string", "begin": "\\$@\"", "end": "\"", "contains": [ { "begin": "{{" }, { "begin": "}}" }, { "begin": "\"\"" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3" } ], "illegal": "\\n" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1" }, { "className": "string", "begin": "@\"", "end": "\"", "contains": [ { "begin": "\"\"" } ], "illegal": "\\n" }, { "className": "string", "begin": "'", "end": "'", "illegal": "\\n", "contains": [ { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.2" } ] }, { "className": "string", "begin": "\"", "end": "\"", "illegal": "\\n", "contains": [ { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.2" } ] }, { "className": "number", "variants": [ { "begin": "\\b(0b[01']+)" }, { "begin": "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" }, { "begin": "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" } ], "relevance": 0 }, { "className": "comment", "begin": "\/\\*", "end": "\\*\/", "contains": { "$ref": "#contains.2.contains" }, "illegal": "\\n" } ] } ] }, { "className": "string", "begin": "@\"", "end": "\"", "contains": { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.2.contains" } }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.3" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.4" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.5" }, { "$ref": "#contains.2" } ] } ] }, { "$ref": "#contains.4.variants.0.contains.3.contains.1" }, { "$ref": "#contains.4.variants.0.contains.3.contains.2" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.3" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.4" } ] }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.5" }, { "beginKeywords": "class interface", "end": "[{;=]", "illegal": "[^\\s:,]", "contains": [ { "className": "title", "begin": "[a-zA-Z]\\w*", "relevance": 0 }, { "$ref": "#contains.1" }, { "$ref": "#contains.2" } ] }, { "beginKeywords": "namespace", "end": "[{;=]", "illegal": "[^\\s:]", "contains": [ { "className": "title", "begin": "[a-zA-Z](\\.?\\w)*", "relevance": 0 }, { "$ref": "#contains.1" }, { "$ref": "#contains.2" } ] }, { "className": "meta", "begin": "^\\s*\\[", "excludeBegin": true, "end": "\\]", "excludeEnd": true, "contains": [ { "className": "meta-string", "begin": "\"", "end": "\"" } ] }, { "beginKeywords": "new return throw await else", "relevance": 0 }, { "className": "function", "begin": "([a-zA-Z]\\w*(<[a-zA-Z]\\w*(\\s*,\\s*[a-zA-Z]\\w*)*>)?(\\[\\])?\\s+)+[a-zA-Z]\\w*\\s*\\(", "returnBegin": true, "end": "\\s*[{;=]", "excludeEnd": true, "keywords": { "$ref": "#keywords" }, "contains": [ { "begin": "[a-zA-Z]\\w*\\s*\\(", "returnBegin": true, "contains": [ { "$ref": "#contains.6.contains.0" } ], "relevance": 0 }, { "className": "params", "begin": "\\(", "end": "\\)", "excludeBegin": true, "excludeEnd": true, "keywords": { "$ref": "#keywords" }, "relevance": 0, "contains": [ { "$ref": "#contains.4" }, { "$ref": "#contains.4.variants.0.contains.3.contains.1.contains.3.contains.5" }, { "$ref": "#contains.2" } ] }, { "$ref": "#contains.1" }, { "$ref": "#contains.2" } ] } ] }