editor-examples/PropertyList/ExtendedINIDataFormat.xni
2024-06-09 00:27:31 -04:00

39 lines
919 B
Plaintext

// Extended INI Data Format
// One of my very first custom data formats
//
// I needed something quick and easy, but more versatile
// than plain-old INI. So I decided to combine C-like
// syntax and INI properties; this was the result.
group1
{
groups can be nested {
// make sure inline braces get parsed correctly
nested key=nested value
semicolons are optional=but they could be parsed; to allow multiple keys=on the same line
// end of lines automatically end the property, just like plain INI
}
the sky's the limit
{
here's another one
{
oh boy
{
and yes=all the spaces should be preserved!
}
}
}
}
// new to this version of Editor, we should support syntax like this:
lazy_list_test
{
value 1
value 2
value 3
}
// this would simply create three properties with those names, and NULL as their value
// some C-like configuration languages use this syntax to declare stuff