3 Only valid for the following subset:
13 Author: Dimitar Dimitrov <mitkofr@yahoo.fr>
20 let val = store Rx.word
22 let empty = Util.empty
23 let comment = Util.comment_noindent
27 the imposed indent is 2 spaces
29 let indent = del /[ \t]+/ " "
31 let mval = [ label "@mval" . Util.del_str "|-" . eol
32 . [ label "@line" . indent . store Rx.space_in . eol ]+ ]
38 let _inherit = [ key "<<" . colon . space . Util.del_str "*" . val . eol ]
39 let inherit = indent . _inherit . (indent . comment)*
43 > { "repo" = "branch" }
45 let _repo = [ key Rx.word . colon . space . (val | mval) . eol ]
46 let repo = indent . _repo . (indent . comment)*
52 let anchor = Util.del_str "&" . val
61 let entry = [ key Rx.word . colon . (space . anchor)? . eol
63 . ((inherit . (repo+)?) | repo+)
67 let header = [ label "@yaml" . Util.del_str "---"
68 . (Sep.space . store Rx.space_in)? . eol ]
74 let lns = ((empty|comment)* . header)? . (entry | comment | empty)*