MCPcopy Create free account
hub / github.com/3rfaan/courses / editorSyntaxToColor

Function editorSyntaxToColor

C/kilo/kilo.c:374–392  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372}
373
374int editorSyntaxToColor(int hl) {
375 switch (hl) {
376 case HL_COMMENT:
377 case HL_MLCOMMENT:
378 return 36;
379 case HL_KEYWORD1:
380 return 33;
381 case HL_KEYWORD2:
382 return 32;
383 case HL_STRING:
384 return 35;
385 case HL_NUMBER:
386 return 31;
387 case HL_MATCH:
388 return 34;
389 default:
390 return 37;
391 }
392}
393
394void editorSelectSyntaxHighlight() {
395 E.syntax = NULL;

Callers 1

editorDrawRowsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected