Skip to content

Commit 4f6abc2

Browse files
authored
lots of highlighting
1 parent b6371dd commit 4f6abc2

File tree

9 files changed

+1402
-0
lines changed

9 files changed

+1402
-0
lines changed

Other/OHF/CPP.ohf

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
{
2+
"manifest": {
3+
"name": "cpp",
4+
"version": "1",
5+
"extensions": [
6+
".cpp",
7+
".cc",
8+
".cxx",
9+
".hpp",
10+
".h"
11+
]
12+
},
13+
"parser": {
14+
"type": "regex",
15+
"data": "(?:(?<!\\\\)\"(?:[^\"\\\\]|\\\\.)*\")|(?:(?<!\\\\)'(?:[^'\\\\]|\\\\.)*')|[^\\s\\w(),\\[\\]{}:]{1,}|[^\\W]+|[^\\w ]|\\s+"
16+
},
17+
"overrides": {
18+
"origin.numbers": "#aa68bc",
19+
"origin.strings": "#b89b64",
20+
"origin.comments": "#555c67",
21+
"origin.functions": "#98c379",
22+
"origin.objects": "#5a9fd9",
23+
"origin.comment_mark": "//"
24+
},
25+
"categories": {
26+
"brackets": {
27+
"color": "#ffd800",
28+
"tokens": [
29+
"}",
30+
"{",
31+
"]",
32+
"[",
33+
")",
34+
"(",
35+
".",
36+
";",
37+
":"
38+
]
39+
},
40+
"main": {
41+
"color": "#c76169",
42+
"tokens": [
43+
"return",
44+
"for",
45+
"if",
46+
"else",
47+
"switch",
48+
"case",
49+
"break",
50+
"default",
51+
"while",
52+
"do",
53+
"try",
54+
"catch",
55+
"throw",
56+
"continue",
57+
"new",
58+
"delete",
59+
"this",
60+
"++",
61+
"--",
62+
"=",
63+
"==",
64+
"!=",
65+
"+=",
66+
"-=",
67+
"/=",
68+
"*=",
69+
"%=",
70+
"<<=",
71+
">>=",
72+
"&=",
73+
"^=",
74+
"|=",
75+
"<=",
76+
">=",
77+
"<",
78+
">",
79+
"!",
80+
"+",
81+
"-",
82+
"/",
83+
"*",
84+
"%",
85+
"&&",
86+
"||",
87+
"^",
88+
"|",
89+
"&",
90+
">>",
91+
"<<",
92+
"->",
93+
"::",
94+
"?",
95+
"sizeof",
96+
"using",
97+
"namespace"
98+
]
99+
},
100+
"data": {
101+
"color": "#52aeb9",
102+
"tokens": [
103+
"class",
104+
"struct",
105+
"union",
106+
"enum",
107+
"template",
108+
"typename",
109+
"typedef",
110+
"const",
111+
"static",
112+
"virtual",
113+
"explicit",
114+
"friend",
115+
"inline",
116+
"volatile",
117+
"public",
118+
"private",
119+
"protected",
120+
"mutable",
121+
"auto",
122+
"void",
123+
"int",
124+
"short",
125+
"long",
126+
"float",
127+
"double",
128+
"char",
129+
"unsigned",
130+
"signed",
131+
"bool",
132+
"constexpr",
133+
"nullptr",
134+
"include",
135+
"define",
136+
"ifdef",
137+
"ifndef",
138+
"endif",
139+
"pragma"
140+
]
141+
},
142+
"booleans": {
143+
"color": "#408088",
144+
"tokens": [
145+
"true",
146+
"false",
147+
"NULL",
148+
"nullptr"
149+
]
150+
}
151+
}
152+
}

Other/OHF/CS.ohf

Lines changed: 155 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,155 @@
1+
{
2+
"manifest": {
3+
"name": "csharp",
4+
"version": "1",
5+
"extensions": [
6+
".cs"
7+
]
8+
},
9+
"parser": {
10+
"type": "regex",
11+
"data": "(?:(?<!\\\\)\"(?:[^\"\\\\]|\\\\.)*\")|(?:(?<!\\\\)'(?:[^'\\\\]|\\\\.)*')|@\"(?:\"\"|[^\"])*\"|[^\\s\\w(),\\[\\]{}:]{1,}|[^\\W]+|[^\\w ]|\\s+"
12+
},
13+
"overrides": {
14+
"origin.numbers": "#aa68bc",
15+
"origin.strings": "#b89b64",
16+
"origin.comments": "#555c67",
17+
"origin.functions": "#98c379",
18+
"origin.objects": "#5a9fd9",
19+
"origin.comment_mark": "//"
20+
},
21+
"categories": {
22+
"brackets": {
23+
"color": "#ffd800",
24+
"tokens": [
25+
"}",
26+
"{",
27+
"]",
28+
"[",
29+
")",
30+
"(",
31+
".",
32+
";",
33+
","
34+
]
35+
},
36+
"main": {
37+
"color": "#c76169",
38+
"tokens": [
39+
"using",
40+
"return",
41+
"for",
42+
"foreach",
43+
"if",
44+
"else",
45+
"switch",
46+
"case",
47+
"break",
48+
"default",
49+
"while",
50+
"do",
51+
"try",
52+
"catch",
53+
"finally",
54+
"throw",
55+
"continue",
56+
"new",
57+
"this",
58+
"base",
59+
"is",
60+
"as",
61+
"in",
62+
"out",
63+
"ref",
64+
"++",
65+
"--",
66+
"=",
67+
"==",
68+
"!=",
69+
"+=",
70+
"-=",
71+
"/=",
72+
"*=",
73+
"%=",
74+
"<=",
75+
">=",
76+
"<",
77+
">",
78+
"!",
79+
"+",
80+
"-",
81+
"/",
82+
"*",
83+
"%",
84+
"&&",
85+
"||",
86+
"^",
87+
"|",
88+
"&",
89+
"??",
90+
"=>",
91+
"?",
92+
":",
93+
"nameof",
94+
"sizeof",
95+
"typeof"
96+
]
97+
},
98+
"data": {
99+
"color": "#52aeb9",
100+
"tokens": [
101+
"class",
102+
"interface",
103+
"enum",
104+
"struct",
105+
"delegate",
106+
"event",
107+
"namespace",
108+
"abstract",
109+
"async",
110+
"await",
111+
"const",
112+
"explicit",
113+
"extern",
114+
"fixed",
115+
"implicit",
116+
"internal",
117+
"lock",
118+
"operator",
119+
"override",
120+
"params",
121+
"private",
122+
"protected",
123+
"public",
124+
"readonly",
125+
"sealed",
126+
"static",
127+
"unsafe",
128+
"virtual",
129+
"volatile",
130+
"void",
131+
"int",
132+
"short",
133+
"long",
134+
"byte",
135+
"float",
136+
"double",
137+
"decimal",
138+
"char",
139+
"bool",
140+
"string",
141+
"object",
142+
"var",
143+
"dynamic"
144+
]
145+
},
146+
"booleans": {
147+
"color": "#408088",
148+
"tokens": [
149+
"true",
150+
"false",
151+
"null"
152+
]
153+
}
154+
}
155+
}

0 commit comments

Comments
 (0)