Skip to content

Commit

Permalink
pragma-grammar: add @line without arguments
Browse files Browse the repository at this point in the history
This pragma reverts to the original location, as if the previous @line
was not even there.

Signed-off-by: Balazs Scheidler <balazs.scheidler@axoflow.com>
  • Loading branch information
bazsi committed Jun 1, 2024
1 parent 14e1109 commit 749858b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pragma-grammar.ym
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,12 @@ line_stmt
cfg_lexer_set_file_location(lexer, $2, $3, $4);
free($2);
}
| KW_LINE LL_EOL
{
cfg_lexer_set_file_location(lexer, NULL, 0, 0);
}

;
/* INCLUDE_RULES */

%%

0 comments on commit 749858b

Please sign in to comment.