diff options
author | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-10-20 13:55:15 +0200 |
---|---|---|
committer | Guillaume Maudoux <guillaume.maudoux@tweag.io> | 2022-10-20 13:55:15 +0200 |
commit | 520404f450e7a0dbaa77ef6352677d992920e34d (patch) | |
tree | 33610bdb8f7f365483dffe5bc5fc3a85a68c2112 | |
parent | b945b844a9ce8479872f6280aedde27e2974b7f3 (diff) |
Revert custom position of 'if' blocks
-rw-r--r-- | src/libexpr/parser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/parser.y b/src/libexpr/parser.y index a91b8b41f..0cf0d56f0 100644 --- a/src/libexpr/parser.y +++ b/src/libexpr/parser.y @@ -396,7 +396,7 @@ expr_function ; expr_if - : IF expr THEN expr ELSE expr { $$ = new ExprIf(makeCurPos(@2, data), $2, $4, $6); } + : IF expr THEN expr ELSE expr { $$ = new ExprIf(CUR_POS, $2, $4, $6); } | expr_op ; |