Commit Graph

73 Commits (ff911986e7f599a36630060ed60b2811474acc29)

Author SHA1 Message Date
Larpon 1be6aed16e
toml: support checking and decoding quoted keys () 2021-11-23 16:59:07 +02:00
Larpon 0779b5fd8e
toml: fix implicit array allocation () 2021-11-23 16:51:24 +02:00
Larpon 49cd1b3d59
toml: make value of `+nan`/`-nan` decode to `nan` () 2021-11-23 16:23:16 +02:00
Larpon e9efed02f0
toml: fix decoding most large number values () 2021-11-23 13:23:16 +02:00
Larpon 3f0e532660
toml: fix unicode and escape value decoding () 2021-11-23 11:02:43 +02:00
Larpon f1dd0e3355
toml: add value decoding () 2021-11-20 19:48:44 +02:00
Larpon 4b9e8e243c
toml: support arrays in value key query syntax () 2021-11-20 19:45:17 +02:00
Larpon 1bbc73384c
toml: fix memory corruption when returning new date/time types () 2021-11-19 20:35:11 +02:00
Larpon a894a6cf36
toml: fix parsing of alphanumeric keys () 2021-11-19 20:34:21 +02:00
Larpon 76cf11e6b5
toml: add Any.default_to() method () 2021-11-19 10:26:45 +02:00
Larpon 96554fad71
toml: improve number conversion () 2021-11-18 19:46:19 +02:00
Larpon 7fba3e65e9
toml: support empty tables () 2021-11-18 15:39:44 +02:00
Larpon 24ea15c8f0
toml: remove fixed value tests from skip list () 2021-11-18 13:57:14 +02:00
Larpon 7ec70d5477
toml: small refactor, move all json functionality to submodule () 2021-11-18 13:27:59 +02:00
Larpon 409321327b
toml: don't use time.Time for time representation () 2021-11-18 07:44:24 +02:00
Larpon 3b612899bf
toml: eat first nl if present in multiline strings () 2021-11-17 23:48:29 +02:00
Larpon 81455acd29
toml: simplify Doc.to_any() method () 2021-11-17 20:58:06 +02:00
Larpon 2f5fae06ee
toml: fix a few string value tests () 2021-11-17 20:54:48 +02:00
Larpon dbf469e000
toml: move to_burntsushi functionality () 2021-11-17 17:25:50 +02:00
Larpon 7cdc906683
toml: fix scanning of short unicode escapes () 2021-11-17 17:24:40 +02:00
Larpon bd9ac598f7
toml: add support for validation of structure and values () 2021-11-17 08:30:40 +02:00
Larpon 2f75ce0d4c
toml: use `json2` to encode output from .to_json() () 2021-11-16 08:41:37 +02:00
Larpon 7b9cca7524
toml: add convenience convertion of Doc to map[string]toml.Any () 2021-11-15 19:00:09 +02:00
Larpon cbdb270d2f
toml: upgrade the module to 100% BurntSushi test suite parsing compatibility () 2021-11-15 15:36:14 +02:00
Larpon 78662c800c
toml: fix parsing formatting on Windows with crlf line endings () 2021-11-15 15:35:30 +02:00
Larpon 9c508237bd
toml: support for `[a."b.c"]` quoted keys () 2021-11-13 11:17:35 +02:00
Larpon 4b42dcad8e
toml: support complex array-tables-array constructs () 2021-11-11 18:30:34 +02:00
Larpon c8cb1bf6b4
toml: check for single-key reassignment in inline tables () 2021-11-11 14:57:11 +02:00
Larpon 35f00c9f91
toml: check for text after comma in arrays () 2021-11-11 14:55:51 +02:00
Larpon 015cfdb49f
toml: add excerpt to value parse errors () 2021-11-11 07:29:38 +02:00
Larpon dbd5acd5ba
toml: small start -> end word use change () 2021-11-11 07:28:46 +02:00
Larpon 69fa87ad24
toml: add date and time checks () 2021-11-11 07:27:41 +02:00
Larpon 66e53279c2
toml: check for more wrong line ending cases () 2021-11-10 15:03:51 +02:00
Larpon d2d67e9f4d
toml: add new inline-table duplicate-key test to skip list () 2021-11-06 15:19:40 +02:00
Larpon 9b00564d98
toml: panic if access fails to a key that was checked () 2021-11-05 14:14:50 +02:00
Larpon 24cd619ff8
toml: fix parsing array of tables () 2021-11-05 12:08:40 +02:00
Larpon db65b65f3c
toml: disallow spacing between (array of tables) key syntax () 2021-11-05 11:29:25 +02:00
Larpon c3b389cde9
toml: rename sub_key -> dotted_key () 2021-11-05 11:28:54 +02:00
Larpon 1999fb9a95
toml: remove some skipped tests related to recent formatting update () 2021-11-04 14:27:14 +02:00
Larpon fc7f4c5b1f
toml: disallow multiline keys () 2021-11-04 14:26:25 +02:00
Larpon 1a54817c81
toml: parse formatting () 2021-11-04 09:15:50 +02:00
Larpon 45c938bdec
toml: streamline scanner.at() return type, fixes () 2021-11-03 10:18:09 +02:00
Larpon bd5e2db460
toml: add Parser.peek(n) method () 2021-11-03 10:15:40 +02:00
Larpon 99fd84dfe4
toml: fix hex values starting with a, e or E and comments ending with crlf () 2021-11-02 19:07:27 +02:00
Larpon 5e4594a121
toml: isolate, fix and regress-test sumtype cast causing memory corruption () 2021-10-28 19:57:30 +03:00
Larpon a987440e2f
toml: add UTF header support, add BOM tests () 2021-10-28 16:38:49 +03:00
Larpon 5ecaa160a7
toml: fix paths in skipped tests for Windows compatibility () 2021-10-28 15:56:56 +03:00
Larpon bc3827ae15
toml: improve array parsing () 2021-10-27 20:26:33 +03:00
Larpon 462d097bf5
toml: small clarification on utf8_max const () 2021-10-27 16:41:22 +03:00
Larpon d53bb54c0a
toml: implement checks for UTF-8 validity () 2021-10-27 15:28:46 +03:00