Merge branch 'devel' of github.com:flyx/NimYAML into devel

This commit is contained in:
Felix Krause 2017-03-29 17:15:04 +02:00
commit a48bf086b7
1 changed files with 2 additions and 2 deletions

View File

@ -111,7 +111,7 @@ template advanceTypeHint(ch: char) {.dirty.} =
typeHintStateMachine ch:
of '~': ythInitial => ythNULL
of '.':
[yth0, ythInt1, ythInt2, ythInt3, ythInt4, ythInt] => ythDecimal
[yth0, ythInt1Zero, ythInt1, ythInt2, ythInt3, ythInt4, ythInt] => ythDecimal
[ythInitial, ythMinus] => ythPoint
ythSecond2 => ythFraction
of '+':
@ -270,7 +270,7 @@ proc guessType*(scalar: string): TypeHint {.raises: [].} =
of ythNULL, ythInitial: result = yTypeNull
of ythTRUE, ythON, ythYES, ythY: result = yTypeBoolTrue
of ythFALSE, ythOFF, ythNO, ythN: result = yTypeBoolFalse
of ythInt1, ythInt2, ythInt3, ythInt4, ythInt, yth0: result = yTypeInteger
of ythInt1, ythInt2, ythInt3, ythInt4, ythInt, yth0, ythInt1Zero: result = yTypeInteger
of ythDecimal, ythExponent: result = yTypeFloat
of ythPointINF: result = yTypeFloatInf
of ythPointNAN: result = yTypeFloatNaN