Skip to content

Commit 7b4ffa8

Browse files
committed
update site for 1.0.0
1 parent 402daac commit 7b4ffa8

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/_includes/partials/description.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ based on JSON Schema.
1818
The language is based on [SDLang](https://sdlang.org), with a number of
1919
modifications and clarifications on its syntax and behavior.
2020

21+
The current version of the KDL spec is `1.0.0`.
22+
2123
</section>

src/_includes/partials/overview.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,20 @@ mynode /-"commented" "not commented" /-key="value" /-{
137137
}
138138
```
139139

140+
### Type Annotations
141+
142+
KDL supports type annotations on both values and nodes. These can be
143+
arbitrary, but can be used by individual implementations or use-cases to
144+
constrain KDL's basic types. A number of type names are also reserved to have
145+
specific meanings.
146+
147+
```kdl
148+
numbers (u8)10 (i32)20 myfloat=(f32)1.5 {
149+
strings (uuid)"123e4567-e89b-12d3-a456-426614174000" (date)"2021-02-03" filter=(regex)r"$\d+"
150+
(author)person name="Alex"
151+
}
152+
```
153+
140154
### More Details
141155

142156
```kdl
@@ -156,7 +170,7 @@ smile "😁"
156170
foo123~!@#$%^&*.:'|/?+ "weeee"
157171
158172
// And you can also use unicode!
159-
ノード お名前"☜(゚ヮ゚☜)"
173+
ノード お名前="☜(゚ヮ゚☜)"
160174
161175
// kdl specifically allows properties and values to be
162176
// interspersed with each other, much like CLI commands.

0 commit comments

Comments
 (0)