-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.decaf
More file actions
21 lines (19 loc) · 1.08 KB
/
test.decaf
File metadata and controls
21 lines (19 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//comment TODO // TODO should be one color, the rest should be another
def int main() { // def and int should both be highlighted
while (true) { // while and true should both be highlighted
if (false) { // if and false should both be highlight
break; // break should be highlighted
} else { // else should be highlighted
continue; // continue should be highlighted
}
}
int a = 0x12310; // int and the constant should be highlighted
bool b = false; // bool and false should be highlighted
int test123 = 123; // int and the constant should be highlighted
bool falsest = false; // bool and false should be highlighted
bool truest = true; // bool and true should be highlighted
int dec_bad = 013; // This literal should not be highlighted
int hex_bad = 0x013; // This literal should not be highlighted
print_str("adsada\n"); // The string and \n should be different colors
return; // return should be highlighted
}