diff options
Diffstat (limited to 'spec.txt')
-rw-r--r-- | spec.txt | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1,4 +1,4 @@ -# Spec attempt 5 +# CUDL - Clear and Unmistakable Data Language * Every file contains 1 value, which may have other values nested inside it. * A schema can be provided when a file is parsed which gives it's value a type. @@ -17,7 +17,8 @@ An inline-end character is one of the following: ## Map A sequence of key:value pairs. No delimeter is needed as every value will have a ending marker. -If a key starts with a quote then it continues until another quote ends it. Quotes can be escaped by using 2 of them. +The first key may be preceeded by whitespace and whitespace can occur before or after the : between the key and value. +If a key starts with a quote then it obeys the same rules as a quoted string. Otherwise a key must match [A-Za-z0-9_-]+ A map can be preceeded by a { and succeeded by a } @@ -45,6 +46,7 @@ The following escape sequences are available for quoted strings and keys: \" - quote \\ - backslash \uXXXX - unicode XXXX +\UXXXXXXXX - unicode XXXXXXXX ``` ### Multiline string |