From 0a3d779e27e854bcee00c33139e27c4beac41e60 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Tue, 10 Jan 2017 03:34:03 +0700 Subject: Allow valueless nodes in the curly parser. --- src/curly_parser.mly | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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: -- cgit v1.2.3