aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkoekeishiya <aasvi93@hotmail.com>2017-12-22 17:38:35 +0100
committerkoekeishiya <aasvi93@hotmail.com>2017-12-22 17:38:35 +0100
commit8b8f85402dff702c5f85e97dee56251e948e6223 (patch)
tree6349e386aa66a9d09fcdf732de94aa929ea976a1
parent707e47323a08332d936d33ae291005e632e1d8df (diff)
downloadskhd-8b8f85402dff702c5f85e97dee56251e948e6223.tar.gz
skhd-8b8f85402dff702c5f85e97dee56251e948e6223.zip
changed printing of linenumber
-rw-r--r--src/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c
index c19cebb..14b1d14 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -150,7 +150,7 @@ parse_hotkey(struct parser *parser)
struct hotkey *hotkey = malloc(sizeof(struct hotkey));
int found_modifier;
- printf("(#%d) hotkey :: {\n", parser->current_token.line);
+ printf("hotkey :: #%d {\n", parser->current_token.line);
if (parser_match(parser, Token_Modifier)) {
hotkey->flags = parse_modifier(parser);
@@ -269,7 +269,7 @@ void parser_report_error(struct parser *parser, const char *format, ...)
{
va_list args;
va_start(args, format);
- fprintf(stderr, "(#%d:%d) ", parser->current_token.line, parser->current_token.cursor);
+ fprintf(stderr, "#%d:%d error: ", parser->current_token.line, parser->current_token.cursor);
vfprintf(stderr, format, args);
fprintf(stderr, ", but got '%.*s'\n", parser->current_token.length, parser->current_token.text);
va_end(args);