From: Johnny Richard <johnny@johnnyrichard.com>
To: ~johnnyrichard/olang-devel@lists.sr.ht
Subject: Re: [PATCH olang] parser: abort when parser identifies a syntax error
Date: Fri, 8 Mar 2024 22:03:46 +0100 [thread overview]
Message-ID: <55doydur4izrww2gzvfjsy42hlzsemaoxnsicoeiaakphcurus@4tqikkf7ne5w> (raw)
In-Reply-To: <20240308205358.1046108-1-johnny@johnnyrichard.com>
Ops... the lint failing again...
Please consider the following fixup:
-------->8--------
Subject: [PATCH olang] fixup! parser: abort when parser identifies a syntax
error
diff --git a/src/parser.c b/src/parser.c
index cfea9ef..3316e07 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -173,7 +173,7 @@ expected_token(parser_t *parser, token_t *token, token_kind_t expected_kind)
if (token->kind != expected_kind) {
fprintf(stderr,
- "%s:%lu:%lu: error: got '"SV_FMT"' token but expect <%s>\n",
+ "%s:%lu:%lu: error: got '" SV_FMT "' token but expect <%s>\n",
parser->file_path,
token->location.row + 1,
(token->location.offset - token->location.bol) + 1,
next prev parent reply other threads:[~2024-03-08 20:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-08 20:52 Johnny Richard
2024-03-08 19:54 ` [olang/patches/.build.yml] build failed builds.sr.ht
2024-03-08 21:03 ` Johnny Richard [this message]
2024-03-08 22:52 ` [PATCH olang] parser: abort when parser identifies a syntax error Carlos Maniero
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55doydur4izrww2gzvfjsy42hlzsemaoxnsicoeiaakphcurus@4tqikkf7ne5w \
--to=johnny@johnnyrichard.com \
--cc=~johnnyrichard/olang-devel@lists.sr.ht \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.johnnyrichard.com/olang.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox