-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhighlight.syntax
More file actions
54 lines (46 loc) · 1.3 KB
/
Copy pathhighlight.syntax
File metadata and controls
54 lines (46 loc) · 1.3 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
53
54
SYNTAX ".c" & ".h"
{
/* Fundamental types (C99) */
"char", "short", "int", "long", "float", "double", "void",
"_Bool", "_Complex", "_Imaginary",
"signed", "unsigned"
= (255, 0, 0);
/* Control flow and related */
"if", "else", "switch", "case", "default",
"for", "while", "do",
"break", "continue", "return", "goto"
= (0, 255, 0);
/* Storage-class and qualifiers */
"auto", "extern", "static", "register",
"const", "volatile", "restrict", "inline"
= (0, 0, 255);
/* User-defined types */
"struct", "union", "enum", "typedef"
= (255, 255, 0);
/* Special operator in C99 */
"sizeof"
= (255, 0, 255);
}
SYNTAX ".cpp"
{
/* C++ specific keywords */
"class", "public", "private", "protected",
"namespace", "using", "template", "typename",
"virtual", "override", "constexpr", "nullptr"
= (255, 128, 0);
/* Control flow */
"if", "else", "switch", "case", "default",
"for", "while", "do",
"break", "continue", "return", "goto"
= (0, 255, 0);
}
SYNTAX ".asm"
{
/* Basic assembly instructions */
"mov", "add", "sub", "mul", "div",
"jmp", "cmp", "je", "jne", "call", "ret"
= (128, 128, 255);
/* Directives and registers */
".data", ".text", "eax", "ebx", "ecx", "edx"
= (0, 200, 200);
}