1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

103 Commits

Author SHA1 Message Date
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
Larpon
6eaacd3391
toml: improve checker documentation () 2021-10-27 14:31:29 +03:00
Larpon
1b9eef74aa
toml: improve inline-table parsing () 2021-10-26 17:00:41 +03:00
Larpon
c526752419
toml: remove unused enum () 2021-10-26 16:58:58 +03:00
Larpon
9a3967bd7d
toml: improve comment support () 2021-10-26 16:58:05 +03:00
Larpon
52df19ef61
toml: check for invalid placement of underscores around exponent () 2021-10-26 13:49:25 +03:00
Delyan Angelov
06796a6119
ci,toml: add the new float/trailing-us-exp.toml to the ignored skip list for now 2021-10-26 10:42:40 +03:00
Larpon
8a4756819a
toml: disallow unclosed arrays () 2021-10-22 20:30:29 +03:00
Larpon
8273c0582b
toml: check for illegal characters, fix all related skipped tests () 2021-10-22 19:57:32 +03:00
Larpon
eb364f0301
toml: check for exponents starting with an underscore () 2021-10-22 19:56:43 +03:00
Larpon
76ff708cf8
toml: squash recently fixed invalid tests () 2021-10-22 13:38:36 +03:00
Larpon
cc2ef4188d
toml: support parsing (+/-)nan and (+/-)inf () 2021-10-22 08:16:47 +03:00
Larpon
909ed76b8f
toml: check binary, octal and hexadecimals literals () 2021-10-21 16:37:38 +03:00
Larpon
a84b1a53ec
toml: fix bin, oct and hex capital identifier check () 2021-10-21 14:12:17 +03:00
Larpon
42359d8915
toml: fix error return in value parsing () 2021-10-07 15:51:18 +03:00
Larpon
8705db5844
toml: fix scanner escape collecting in literal strings () 2021-09-30 16:04:21 +03:00
Larpon
e3d3727c0c
toml: fix 7 escape tests () 2021-09-29 19:28:09 +03:00
Larpon
4ff061927b
toml: easier scanner configuration () 2021-09-29 14:53:06 +03:00
Larpon
d39fec3479
toml: fix unbalanced quoted tests () 2021-09-29 10:19:49 +03:00
Larpon
bc4aad5fb4
toml: add quote details to ast.Quoted () 2021-09-28 17:40:03 +03:00
Larpon
2ee873d6ca
toml: fix invalid bad-multiline test () 2021-09-27 17:42:20 +03:00
Larpon
da47638f42
toml: correct documentation () 2021-09-26 07:34:47 +03:00
Larpon
13b2aa701c
toml: rename ast.Node -> ast.Value () 2021-09-25 20:31:02 +03:00
Larpon
5541ec8670
vlib: add toml module + tests () 2021-09-24 21:13:52 +03:00