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

154 Commits

Author SHA1 Message Date
Delyan Angelov
ee858568ff
toml: ignore CRLF just like LF in line comments, support VTEST_HIDE_OK=1 in tests. 2022-01-03 12:54:16 +02:00
Larpon
2a5356670b
toml: add as_strings() method to map of Any (#12824) 2021-12-13 21:43:33 +02:00
Delyan Angelov
cde0cbd5ad
ci: fix failing tests-sanitize-address-clang step for vlib/toml/tests/spaced_keys_test.v 2021-12-11 19:03:47 +02:00
Larpon
ba06eba39c
toml: fix implicit allocation overwrite of existing table (#12793) 2021-12-11 15:21:46 +02:00
Larpon
7e6d4ebfe1
toml: add doc string to reflect methods (#12666) 2021-12-03 23:07:44 +02:00
Larpon
1d6cc57d9c
toml: add reflection method (#12664) 2021-12-03 12:40:46 +02:00
Larpon
7d0a36dd08
toml: solidify single-line escape validation (#12644) 2021-12-02 12:07:53 +02:00
Larpon
adddac4807
toml: add some meat to README.md (#12649) 2021-12-02 12:01:59 +02:00
Larpon
5ab91dd471
toml: support multi-level map keys in arrays-of-tables (#12641) 2021-12-02 11:19:45 +02:00
Larpon
ebfacca252
toml: fix bug in unicode decoding (#12643) 2021-12-02 11:19:12 +02:00
Larpon
9cf7af0c75
toml: add better float validation (#12640) 2021-12-02 11:16:55 +02:00
Larpon
b3aedff3f8
toml: convert yaml value checks in iarna test suite (#12629) 2021-12-01 14:43:15 +02:00
Larpon
6f193c4300
toml: remove obsolete comment from checker (#12626) 2021-11-30 19:40:31 +02:00
Larpon
758ba76d2b
toml: update testdata/.gitignore (#12630) 2021-11-30 16:01:20 +02:00
Larpon
5c8e626912
toml: add alexcrichton/toml-rs test suite to CI (#12624) 2021-11-30 15:08:30 +02:00
Larpon
7d9028db56
toml: add more checks for table redeclarations (#12615) 2021-11-30 15:01:00 +02:00
Larpon
f50f409ad7
toml: simplify bool keys in scanner and parser (#12625) 2021-11-30 14:26:47 +02:00
Larpon
14424100e8
toml: comply with BurntSushi @eb989e5 (#12616) 2021-11-29 22:15:22 +02:00
Larpon
65e9503556
toml: check for immutable tables (#12612) 2021-11-29 15:10:23 +02:00
Larpon
0fc47b50a2
toml: fix date-time and time ms test inconsistency (#12593) 2021-11-28 12:42:32 +02:00
Larpon
1d8ece7ac0
toml: fix, test and optimize nan and inf values (#12592) 2021-11-27 21:26:28 +02:00
Larpon
22043f2df1
toml: fix float checker bug for -0.01 (#12590) 2021-11-27 21:03:26 +02:00
Larpon
d52b62a4f4
toml: improve parsing of bare keys to include - and _ (#12588) 2021-11-27 15:46:05 +02:00
Larpon
4383cf7de5
toml: add iarna/toml-spec-tests to CI tests (#12583) 2021-11-26 19:15:01 +02:00
Larpon
04b030b7ab
toml: add 1MB file parsing test to CI (#12582) 2021-11-26 18:11:14 +03:00
Larpon
253e38d9d7
toml: support implicit array of tables key change (#12580) 2021-11-26 15:06:28 +02:00
Larpon
a59eabc4ab
toml: clean up and improve spaced and dotted key parsing (#12576) 2021-11-25 16:51:54 +02:00
Larpon
9a2c563735
toml: add conversion of ast inf and nan to Any (#12567) 2021-11-25 12:33:54 +02:00
Larpon
11d70624af
toml: streamline value() api (#12568) 2021-11-24 20:39:22 +02:00
Larpon
f825306cff
toml: workaround #9507 (#12566) 2021-11-24 20:36:15 +02:00
Larpon
ff95cf18d4
toml: expand short date time milliseconds in decoder (#12564) 2021-11-24 14:49:23 +02:00
Larpon
1be6aed16e
toml: support checking and decoding quoted keys (#12552) 2021-11-23 16:59:07 +02:00
Larpon
0779b5fd8e
toml: fix implicit array allocation (#12553) 2021-11-23 16:51:24 +02:00
Larpon
49cd1b3d59
toml: make value of +nan/-nan decode to nan (#12542) 2021-11-23 16:23:16 +02:00
Larpon
e9efed02f0
toml: fix decoding most large number values (#12541) 2021-11-23 13:23:16 +02:00
Larpon
3f0e532660
toml: fix unicode and escape value decoding (#12534) 2021-11-23 11:02:43 +02:00
Larpon
f1dd0e3355
toml: add value decoding (#12521) 2021-11-20 19:48:44 +02:00
Larpon
4b9e8e243c
toml: support arrays in value key query syntax (#12527) 2021-11-20 19:45:17 +02:00
Larpon
1bbc73384c
toml: fix memory corruption when returning new date/time types (#12507) 2021-11-19 20:35:11 +02:00
Larpon
a894a6cf36
toml: fix parsing of alphanumeric keys (#12517) 2021-11-19 20:34:21 +02:00
Larpon
76cf11e6b5
toml: add Any.default_to() method (#12506) 2021-11-19 10:26:45 +02:00
Larpon
96554fad71
toml: improve number conversion (#12509) 2021-11-18 19:46:19 +02:00
Larpon
7fba3e65e9
toml: support empty tables (#12504) 2021-11-18 15:39:44 +02:00
Larpon
24ea15c8f0
toml: remove fixed value tests from skip list (#12503) 2021-11-18 13:57:14 +02:00
Larpon
7ec70d5477
toml: small refactor, move all json functionality to submodule (#12502) 2021-11-18 13:27:59 +02:00
Larpon
409321327b
toml: don't use time.Time for time representation (#12498) 2021-11-18 07:44:24 +02:00
Larpon
3b612899bf
toml: eat first nl if present in multiline strings (#12496) 2021-11-17 23:48:29 +02:00
Larpon
81455acd29
toml: simplify Doc.to_any() method (#12495) 2021-11-17 20:58:06 +02:00
Larpon
2f5fae06ee
toml: fix a few string value tests (#12493) 2021-11-17 20:54:48 +02:00
Larpon
dbf469e000
toml: move to_burntsushi functionality (#12492) 2021-11-17 17:25:50 +02:00
Larpon
7cdc906683
toml: fix scanning of short unicode escapes (#12491) 2021-11-17 17:24:40 +02:00
Larpon
bd9ac598f7
toml: add support for validation of structure and values (#12481) 2021-11-17 08:30:40 +02:00
Larpon
2f75ce0d4c
toml: use json2 to encode output from .to_json() (#12470) 2021-11-16 08:41:37 +02:00
Larpon
7b9cca7524
toml: add convenience convertion of Doc to map[string]toml.Any (#12473) 2021-11-15 19:00:09 +02:00
Larpon
cbdb270d2f
toml: upgrade the module to 100% BurntSushi test suite parsing compatibility (#12466) 2021-11-15 15:36:14 +02:00
Larpon
78662c800c
toml: fix parsing formatting on Windows with crlf line endings (#12468) 2021-11-15 15:35:30 +02:00
Larpon
9c508237bd
toml: support for [a."b.c"] quoted keys (#12444) 2021-11-13 11:17:35 +02:00
Larpon
4b42dcad8e
toml: support complex array-tables-array constructs (#12438) 2021-11-11 18:30:34 +02:00
Larpon
c8cb1bf6b4
toml: check for single-key reassignment in inline tables (#12436) 2021-11-11 14:57:11 +02:00
Larpon
35f00c9f91
toml: check for text after comma in arrays (#12435) 2021-11-11 14:55:51 +02:00
Larpon
015cfdb49f
toml: add excerpt to value parse errors (#12429) 2021-11-11 07:29:38 +02:00
Larpon
dbd5acd5ba
toml: small start -> end word use change (#12428) 2021-11-11 07:28:46 +02:00
Larpon
69fa87ad24
toml: add date and time checks (#12427) 2021-11-11 07:27:41 +02:00
Larpon
66e53279c2
toml: check for more wrong line ending cases (#12424) 2021-11-10 15:03:51 +02:00
Larpon
d2d67e9f4d
toml: add new inline-table duplicate-key test to skip list (#12399) 2021-11-06 15:19:40 +02:00
Larpon
9b00564d98
toml: panic if access fails to a key that was checked (#12384) 2021-11-05 14:14:50 +02:00
Larpon
24cd619ff8
toml: fix parsing array of tables (#12388) 2021-11-05 12:08:40 +02:00
Larpon
db65b65f3c
toml: disallow spacing between (array of tables) key syntax (#12382) 2021-11-05 11:29:25 +02:00
Larpon
c3b389cde9
toml: rename sub_key -> dotted_key (#12383) 2021-11-05 11:28:54 +02:00
Larpon
1999fb9a95
toml: remove some skipped tests related to recent formatting update (#12380) 2021-11-04 14:27:14 +02:00
Larpon
fc7f4c5b1f
toml: disallow multiline keys (#12381) 2021-11-04 14:26:25 +02:00
Larpon
1a54817c81
toml: parse formatting (#12374) 2021-11-04 09:15:50 +02:00
Larpon
45c938bdec
toml: streamline scanner.at() return type, fixes #12344 (#12370) 2021-11-03 10:18:09 +02:00
Larpon
bd5e2db460
toml: add Parser.peek(n) method (#12369) 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 (#12367) 2021-11-02 19:07:27 +02:00
Larpon
5e4594a121
toml: isolate, fix and regress-test sumtype cast causing memory corruption (#12329) 2021-10-28 19:57:30 +03:00
Larpon
a987440e2f
toml: add UTF header support, add BOM tests (#12326) 2021-10-28 16:38:49 +03:00
Larpon
5ecaa160a7
toml: fix paths in skipped tests for Windows compatibility (#12323) 2021-10-28 15:56:56 +03:00
Larpon
bc3827ae15
toml: improve array parsing (#12322) 2021-10-27 20:26:33 +03:00
Larpon
462d097bf5
toml: small clarification on utf8_max const (#12320) 2021-10-27 16:41:22 +03:00
Larpon
d53bb54c0a
toml: implement checks for UTF-8 validity (#12313) 2021-10-27 15:28:46 +03:00
Larpon
6eaacd3391
toml: improve checker documentation (#12315) 2021-10-27 14:31:29 +03:00
Larpon
1b9eef74aa
toml: improve inline-table parsing (#12307) 2021-10-26 17:00:41 +03:00
Larpon
c526752419
toml: remove unused enum (#12304) 2021-10-26 16:58:58 +03:00
Larpon
9a3967bd7d
toml: improve comment support (#12305) 2021-10-26 16:58:05 +03:00
Larpon
52df19ef61
toml: check for invalid placement of underscores around exponent (#12303) 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 (#12273) 2021-10-22 20:30:29 +03:00
Larpon
8273c0582b
toml: check for illegal characters, fix all related skipped tests (#12270) 2021-10-22 19:57:32 +03:00
Larpon
eb364f0301
toml: check for exponents starting with an underscore (#12271) 2021-10-22 19:56:43 +03:00
Larpon
76ff708cf8
toml: squash recently fixed invalid tests (#12266) 2021-10-22 13:38:36 +03:00
Larpon
cc2ef4188d
toml: support parsing (+/-)nan and (+/-)inf (#12256) 2021-10-22 08:16:47 +03:00
Larpon
909ed76b8f
toml: check binary, octal and hexadecimals literals (#12255) 2021-10-21 16:37:38 +03:00
Larpon
a84b1a53ec
toml: fix bin, oct and hex capital identifier check (#12254) 2021-10-21 14:12:17 +03:00
Larpon
42359d8915
toml: fix error return in value parsing (#12097) 2021-10-07 15:51:18 +03:00
Larpon
8705db5844
toml: fix scanner escape collecting in literal strings (#12022) 2021-09-30 16:04:21 +03:00
Larpon
e3d3727c0c
toml: fix 7 escape tests (#12017) 2021-09-29 19:28:09 +03:00
Larpon
4ff061927b
toml: easier scanner configuration (#12016) 2021-09-29 14:53:06 +03:00
Larpon
d39fec3479
toml: fix unbalanced quoted tests (#12006) 2021-09-29 10:19:49 +03:00
Larpon
bc4aad5fb4
toml: add quote details to ast.Quoted (#11997) 2021-09-28 17:40:03 +03:00