-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcs.syntax
59 lines (59 loc) · 1.96 KB
/
cs.syntax
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
---
name: C#
fileTypes:
- cs
scopeName: source.c-sharp
uuid: 1BA75B32-707C-11D9-A928-000D93589AF6
foldingStartMarker: "(?x)\n\
\t\t /\\*\\*(?!\\*)\n\
\t\t|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))\n\
\t"
patterns:
- name: comment.block.c#
captures:
"0":
name: punctuation.definition.comment.c#
begin: /\*
end: \*/
- name: comment.line.double-slash.c#
captures:
"1":
name: punctuation.definition.comment.c#
match: (//).*$\n?
- name: keyword.control.c#
match: \b(abstract|as|base|break|case|catch|checked|const|continue|default|delegate|do|else|event|explicit|extern|false|finally|fixed|for|foreach|goto|if|implicit|in|internal|is|lock|namespace|new|null|operator|out|override|params|private|protected|public|readonly|ref|return|sealed|sizeof|stackalloc|static|switch|this|throw|true|try|typeof|unckecked|unsafe|using|virtual|volatile|void|while)\b
- name: storage.type.c#
match: \b(bool|byte|char|class|decimal|double|enum|float|int|nterface|long|object|sbyte|short|string|struct|uint|ulong|ushort)\b
- name: constant.numeric.c#
match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\b
- name: string.quoted.double.c#
endCaptures:
"0":
name: punctuation.definition.string.end.c#
begin: "\""
beginCaptures:
"0":
name: punctuation.definition.string.begin.c#
end: "\""
patterns:
- name: constant.character.escape.c#
match: \\.
- name: string.quoted.single.c#
endCaptures:
"0":
name: punctuation.definition.string.end.c#
begin: "'"
beginCaptures:
"0":
name: punctuation.definition.string.begin.c#
end: "'"
patterns:
- name: constant.character.escape.c#
match: \\.
- name: meta.preprocessor.c#
captures:
"2":
name: keyword.control.import.c#
match: ^(#)\s*(if|else|elif|endif|define|undef|warning|error|line|region|endregion)\b
foldingStopMarker: (?<!\*)\*\*/|^\s*\}
keyEquivalent: ^~C