MIRROR: javascript for ๐Ÿœ's, a tiny runtime with big ambitions
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

improve colors

+24 -19
+1
include/highlight.h
··· 31 31 HL_TYPE_BOOLEAN, 32 32 HL_LITERAL_NULL, 33 33 HL_STRING, 34 + HL_BOOLEAN, 34 35 HL_NUMBER, 35 36 HL_COMMENT, 36 37 HL_FUNCTION_NAME,
+23 -19
src/highlight.c
··· 88 88 l_kw_italic: return HL_KEYWORD_ITALIC; 89 89 l_kw_delete: return HL_KEYWORD_DELETE; 90 90 l_type: return HL_TYPE; 91 - l_bool: return HL_TYPE_BOOLEAN; 91 + l_bool: return HL_BOOLEAN; 92 92 l_null: return HL_LITERAL_NULL; 93 93 } 94 94 ··· 413 413 414 414 static const char *class_to_crvar(hl_token_class cls) { 415 415 switch (cls) { 416 - case HL_KEYWORD: return "blue"; 417 - case HL_KEYWORD_ITALIC: return "italic+blue"; 418 - case HL_KEYWORD_DELETE: return "red"; 419 - case HL_KEYWORD_EXTENDS: return "italic+cyan"; 420 - case HL_TYPE: return "cyan"; 421 - case HL_TYPE_STRING: return "green"; 422 - case HL_TYPE_BOOLEAN: return "magenta"; 423 - case HL_LITERAL_NULL: return "gray"; 424 416 case HL_STRING: return "green"; 425 417 case HL_NUMBER: return "yellow"; 426 - case HL_COMMENT: return "dim"; 427 - case HL_FUNCTION_NAME: return "green"; 428 - case HL_CLASS_NAME: return "bold+yellow"; 429 - case HL_PARENT_CLASS: return "bold+cyan"; 430 - case HL_FUNCTION: return "green"; 431 - case HL_PROPERTY: return "bright_magenta"; 432 - case HL_OPERATOR: return "bright_magenta"; 433 - case HL_OPERATOR_CMP: return "gray"; 434 - case HL_OPTIONAL_CHAIN: return "gray"; 435 - case HL_SEMICOLON: return "dim"; 418 + case HL_BOOLEAN: return "magenta"; 419 + 420 + case HL_KEYWORD: return "#65B2FF"; 421 + case HL_KEYWORD_DELETE: return "#F43D3D"; 422 + case HL_TYPE: return "#59D8F1"; 423 + case HL_TYPE_STRING: return "#30E8AA"; 424 + case HL_TYPE_BOOLEAN: return "#30E8AA"; 425 + case HL_LITERAL_NULL: return "#242628"; 426 + case HL_COMMENT: return "#758CA3"; 427 + case HL_FUNCTION_NAME: return "#30E8AA"; 428 + case HL_FUNCTION: return "#30E8AA"; 429 + case HL_PROPERTY: return "#CCA3F4"; 430 + case HL_OPERATOR: return "#CCA3F4"; 431 + case HL_OPERATOR_CMP: return "#8CB2D8"; 432 + case HL_OPTIONAL_CHAIN: return "#8CB2D8"; 433 + case HL_SEMICOLON: return "#B2CCE5"; 434 + 435 + case HL_KEYWORD_ITALIC: return "italic+#65B2FF"; 436 + case HL_CLASS_NAME: return "bold+#F7B76D"; 437 + case HL_PARENT_CLASS: return "bold+#59D8F1"; 438 + case HL_KEYWORD_EXTENDS: return "italic+#59D8F1"; 439 + 436 440 default: return NULL; 437 441 }} 438 442