summaryrefslogtreecommitdiff
path: root/src/expand/mod.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-09-25 13:00:57 +0800
committerJohn Hodge <tpg@mutabah.net>2016-09-25 13:00:57 +0800
commit5722f6aa867e5d979e524abd9c685094b6d8e203 (patch)
tree12abc579d0966a74cc85bbd582d4a43e578fa7f0 /src/expand/mod.cpp
parentbe64c63a949929dc3d78d4fbeb125f290b1ba06b (diff)
downloadmrust-5722f6aa867e5d979e524abd9c685094b6d8e203.tar.gz
Parse+Expand - Support `let` in expression macros
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r--src/expand/mod.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expand/mod.cpp b/src/expand/mod.cpp
index 8060d104..962e49de 100644
--- a/src/expand/mod.cpp
+++ b/src/expand/mod.cpp
@@ -309,7 +309,9 @@ struct CExpandExpr:
{
SET_MODULE( (*ttl), mod );
// Reparse as expression / item
- auto newexpr = Parse_Expr0(*ttl);
+ bool add_silence_if_end = false;
+ auto newexpr = Parse_ExprBlockLine(*ttl, &add_silence_if_end);
+ // TODO: use add_silence_if_end - Applies if this node is the last node in the block.
// Then call visit on it again
DEBUG("--- Visiting new node");
this->visit(newexpr);