From 77c3369ed06089b6b2d923e505bb953edea98b0b Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 21 Mar 2019 20:23:44 +0100 Subject: [PATCH] fix yaml cond example --- examples/parse-yaml/cond.yaml | 45 ++++++++++++++++------------------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/examples/parse-yaml/cond.yaml b/examples/parse-yaml/cond.yaml index 49483ab..eabfa53 100644 --- a/examples/parse-yaml/cond.yaml +++ b/examples/parse-yaml/cond.yaml @@ -16,28 +16,25 @@ patterns: child: &term id: term - type: or + type: seq children: - - type: seq - id: function - children: - - type: any - id: function_name - attr: a_identifier - - type: any - attr: a_open - - type: option - id: term_list - child: - type: seq - children: - - *term - - type: many - child: - type: seq - children: - - type: str - string: "," - - *term - - type: any - attr: a_close + - type: any + id: function_name + attr: a_identifier + - type: any + attr: a_open + - type: option + id: term_list + child: + type: seq + children: + - *term + - type: many + child: + type: seq + children: + - type: str + string: "," + - *term + - type: any + attr: a_close -- 2.20.1