Mercurial > games > semicongine
changeset 1376:cd2455307a6c
fix: arrays with last element 0 not parsable
author | sam <sam@basx.dev> |
---|---|
date | Sun, 08 Dec 2024 08:20:36 +0700 |
parents | 2da623ec519b |
children | aaf8fa2c7bb2 |
files | semicongine/thirdparty/parsetoml.nim |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/semicongine/thirdparty/parsetoml.nim Wed Dec 04 22:17:41 2024 +0700 +++ b/semicongine/thirdparty/parsetoml.nim Sun Dec 08 08:20:36 2024 +0700 @@ -841,7 +841,7 @@ case nextChar of '.': return parseFloat(state, 0, forcedSign) - of strutils.Whitespace: + of strutils.Whitespace, ']': state.pushBackChar(nextChar) return TomlValueRef(kind: TomlValueKind.Int, intVal: 0) of strutils.Digits: