Skip to content

Commit

Permalink
Add a schema for the diff format
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Aug 31, 2019
1 parent c6d38cf commit a127eb0
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions data/schema/diff.cfg
@@ -0,0 +1,65 @@
{./macros.cfg}
[wml_schema]
[type]
name="string"
value=".*"
[/type]
[type]
name="delete"
value="x"
[/type]
[type]
name="index"
value="[0-9]+"
[/type]
[tag]
name="root"
[tag]
name="insert"
{ANY_KEY string}
[/tag]
[tag]
name="delete"
{ANY_KEY delete}
[/tag]
[tag]
name="insert_child"
any_tag=yes
max=infinite
[key]
name="index"
type="index"
mandatory=yes
[/key]
[/tag]
[tag]
name="delete_child"
max=infinite
[key]
name="index"
type="index"
mandatory=yes
[/key]
[tag]
name="*"
[/tag]
[/tag]
[tag]
name="change_child"
max=infinite
[key]
name="index"
type="index"
mandatory=yes
[/key]
[tag]
name="*"
{LINK_TAG insert}
{LINK_TAG delete}
{LINK_TAG insert_child}
{LINK_TAG delete_child}
{LINK_TAG change_child}
[/tag]
[/tag]
[/tag]
[/wml_schema]

0 comments on commit a127eb0

Please sign in to comment.