orchestr7 / ktoml

Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS
https://akuleshov7.github.io/ktoml
MIT License
449 stars 24 forks source link

Support for zero-item inline tables #236

Closed alanv closed 1 year ago

alanv commented 1 year ago

TomInlineTable in ktoml-core-jvm:0.5.0 throw a ParseException when it encounters a zero-item inline table.

For example, consider the following line of valid (per language docs) TOML:

ACTIVITY_COMPOSE = {}

This yields the following exception:

ParseException: <...>: Incorrect format of Key-Value pair (missing equals sign). Should be <key = value>, but was: . If you wanted to define table - use brackets []
orchestr7 commented 1 year ago

Sounds like a new feature, unfortunately all contributors are busy even with fixing bugs, so I do not know if it will be fixed soon, sorry. But I will definitely try ;(