diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-25 13:00:57 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-25 13:00:57 +0800 |
commit | 5722f6aa867e5d979e524abd9c685094b6d8e203 (patch) | |
tree | 12abc579d0966a74cc85bbd582d4a43e578fa7f0 /src/expand/mod.cpp | |
parent | be64c63a949929dc3d78d4fbeb125f290b1ba06b (diff) | |
download | mrust-5722f6aa867e5d979e524abd9c685094b6d8e203.tar.gz |
Parse+Expand - Support `let` in expression macros
Diffstat (limited to 'src/expand/mod.cpp')
-rw-r--r-- | src/expand/mod.cpp | 4 |
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); |