akuleshov7 / ktoml

Kotlin Multiplatform parser and compile-time serializer/deserializer for TOML format (Native, JS, JVM) based on KxS

Home Page:https://akuleshov7.github.io/ktoml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for zero-item inline tables

alanv opened this issue · comments

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 []

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 ;(