-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpp_syntax_highlighting_rules.json
More file actions
52 lines (52 loc) · 1.19 KB
/
Copy pathcpp_syntax_highlighting_rules.json
File metadata and controls
52 lines (52 loc) · 1.19 KB
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
[
{
"pattern": "#[^\n]*",
"color": "gray",
"tag_name": "comment"
},
{
"pattern": "\\b(if|else|for|while|break|continue|return)\\b",
"color": "blue",
"tag_name": "keyword"
},
{
"pattern": "\\b(int|float|double|char|void)\\b",
"color": "purple",
"tag_name": "type"
},
{
"pattern": "\\b(true|false)\\b",
"color": "green",
"tag_name": "boolean"
},
{
"pattern": "\\b[0-9]+\\b",
"color": "orange",
"tag_name": "number"
},
{
"pattern": "\".*?\"",
"color": "red",
"tag_name": "string"
},
{
"pattern": "\\b(namespace|class|public|private|protected|struct|template|typename|using|constexpr|static|const|extern|mutable|auto|inline|virtual|explicit|operator|new|delete|friend|typedef|decltype|nullptr)\\b",
"color": "blue",
"tag_name": "keyword"
},
{
"pattern": "\\b(try|catch|throw|except)\\b",
"color": "blue",
"tag_name": "keyword"
},
{
"pattern": "\\b(std|cin|cout|endl|vector|string|map|set|iterator|algorithm|queue|stack|pair)\\b",
"color": "purple",
"tag_name": "library"
},
{
"pattern": "\\<[A-Za-z_]+[A-Za-z_0-9]*\\>",
"color": "blue",
"tag_name": "keyword"
}
]