diff options
author | cflip <cflip@cflip.net> | 2023-01-18 15:39:52 -0700 |
---|---|---|
committer | cflip <cflip@cflip.net> | 2023-01-18 15:45:25 -0700 |
commit | 40e9a891fd2d09d56465353be379abc3f127e99d (patch) | |
tree | 02f0cef84e164177e012961565752374bcb92024 /syntax.c | |
parent | 8d4c8b32faadd97631904e411ff39cb8282030f5 (diff) |
Reimplement syntax highlighting
Diffstat (limited to 'syntax.c')
-rw-r--r-- | syntax.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -158,13 +158,13 @@ int editor_syntax_to_colour(int highlight) { switch (highlight) { case HIGHLIGHT_MULTILINE_COMMENT: - case HIGHLIGHT_COMMENT: return 36; - case HIGHLIGHT_KEYWORD1: return 33; - case HIGHLIGHT_KEYWORD2: return 32; - case HIGHLIGHT_STRING: return 35; - case HIGHLIGHT_NUMBER: return 31; - case HIGHLIGHT_MATCH: return 34; - default: return 37; + case HIGHLIGHT_COMMENT: return 0x00ff00; + case HIGHLIGHT_KEYWORD1: return 0x00ffff; + case HIGHLIGHT_KEYWORD2: return 0xff00ff; + case HIGHLIGHT_STRING: return 0x7f7fff; + case HIGHLIGHT_NUMBER: return 0xff0000; + case HIGHLIGHT_MATCH: return 0xff7fff; + default: return 0xfffffff; } } |