aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-10-20 13:55:15 +0200
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-10-20 13:55:15 +0200
commit520404f450e7a0dbaa77ef6352677d992920e34d (patch)
tree33610bdb8f7f365483dffe5bc5fc3a85a68c2112 /src
parentb945b844a9ce8479872f6280aedde27e2974b7f3 (diff)
Revert custom position of 'if' blocks
Diffstat (limited to 'src')
-rw-r--r--src/libexpr/parser.y2
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
;