From a5dbfacf2ff71fc748f0201ee001581e817afc0a Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Sun, 18 Nov 2012 15:32:03 +0100 Subject: [PATCH] pragma line(lineno) - sets the linenumber for the line after the pragma --- lexer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lexer.c b/lexer.c index ecda7f7..872df8c 100644 --- a/lexer.c +++ b/lexer.c @@ -414,6 +414,9 @@ static bool lex_try_pragma(lex_file *lex) lex->name = util_strdup(param); vec_push(lex_filenames, lex->name); } + else if (!strcmp(command, "line")) { + line = strtol(param, NULL, 0)-1; + } else goto unroll; -- 2.39.2