diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cparse/cparse.ypp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cparse/cparse.ypp b/src/cparse/cparse.ypp index aeecaf3..535ec3d 100644 --- a/src/cparse/cparse.ypp +++ b/src/cparse/cparse.ypp @@ -151,7 +151,7 @@ tree: node { add_node(); } LEFTB { go_down(); - } forest RIGHTB { + } forest comment RIGHTB { go_up(); } ; @@ -169,10 +169,10 @@ nodec: NODE { nname = $1.str; ndeact = $1.deactivated; } - | COMMENT NODE { + | COMMENT comment NODE { ncomment = $1.str; - nname = $2.str; - ndeact = $2.deactivated; + nname = $3.str; + ndeact = $3.deactivated; } ; |