diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/curly_parser.mly | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/curly_parser.mly b/src/curly_parser.mly index 896f5c0..df377b9 100644 --- a/src/curly_parser.mly +++ b/src/curly_parser.mly @@ -35,6 +35,8 @@ values: leaf_node: | comment = opt_comment; name = IDENTIFIER; values = values; SEMI { Vytree.make_full {default_data with values=(List.rev values); comment=comment} name []} + | comment = opt_comment; name = IDENTIFIER; SEMI (* valueless node *) + { Vytree.make_full {default_data with comment=comment} name [] } ; node: |