bold debug msgs text

master
serr 2025-05-13 18:46:02 +03:00
parent 3874c3d4bb
commit 19307045b3
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@
extern int yylineno;
void yyerror(const char *s) {
fprintf(stderr, "\033[91mError at line %i: %s\033[0m\n", yylineno, s);
fprintf(stderr, "\033[1;91mError at line %i: %s\033[0m\n", yylineno, s);
exit(1);
}

View File

@ -161,12 +161,12 @@ int main(int argc, char **argv) {
if (argc > 1) {
FILE *f = fopen(argv[1], "r");
if (!f) {
perror("\033[91mFailed to open file\033[0m");
perror("\033[1;91mFailed to open file\033[0m");
return 1;
}
yyin = f;
}
yyparse();
printf("\033[92mGOOD CODE\033[0m");
printf("\033[1;92mGOOD CODE\033[0m\n");
return 0;
}