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

53 Commits

Author SHA1 Message Date
yuyi
14148f3e52
toml: clean up autocast in parser.v (#17662) 2023-03-18 23:15:00 +03:00
ChAoS_UnItY
404a9aa442
v: forbid function parameter names, shadowing imported module names (#17210) 2023-02-08 20:37:04 +02:00
Subhomoy Haldar
f7a11b8e50
toml: update value_opt syntax and add missing documentation (#16510) 2022-11-22 19:45:12 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Ikko Ashimine
56239b4a23
toml: fix typo in parser.v (#16430) 2022-11-14 21:08:22 +03:00
Delyan Angelov
968435fca6
toml: clearly mark the workaround [manualfree] tags with [autofree_bug; manualfree], so they can be found/removed when -autofree is fixed 2022-11-01 18:08:38 +02:00
Delyan Angelov
ffd9b9bae1
ci,toml: add a workaround for buggy -autofree (skip -autofree compilation for some of the toml functions, that prevent VED to compile cleanly on the CI) 2022-11-01 17:52:41 +02:00
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
yuyi
e51f0be6db
checker: check taking the address of map field outside unsafe block (#15737) 2022-09-13 10:04:21 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
yuyi
291a1ffd8d
token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +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
5ab91dd471
toml: support multi-level map keys in arrays-of-tables (#12641) 2021-12-02 11:19:45 +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
65e9503556
toml: check for immutable tables (#12612) 2021-11-29 15:10:23 +02:00
Larpon
1d8ece7ac0
toml: fix, test and optimize nan and inf values (#12592) 2021-11-27 21:26:28 +02:00
Larpon
d52b62a4f4
toml: improve parsing of bare keys to include - and _ (#12588) 2021-11-27 15:46:05 +02: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
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
f1dd0e3355
toml: add value decoding (#12521) 2021-11-20 19:48:44 +02:00
Larpon
a894a6cf36
toml: fix parsing of alphanumeric keys (#12517) 2021-11-19 20:34:21 +02:00
Larpon
7fba3e65e9
toml: support empty tables (#12504) 2021-11-18 15:39:44 +02:00
Larpon
7ec70d5477
toml: small refactor, move all json functionality to submodule (#12502) 2021-11-18 13:27:59 +02:00
Larpon
3b612899bf
toml: eat first nl if present in multiline strings (#12496) 2021-11-17 23:48:29 +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
66e53279c2
toml: check for more wrong line ending cases (#12424) 2021-11-10 15:03:51 +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
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
bd5e2db460
toml: add Parser.peek(n) method (#12369) 2021-11-03 10:15:40 +02:00
Larpon
bc3827ae15
toml: improve array parsing (#12322) 2021-10-27 20:26:33 +03:00
Larpon
1b9eef74aa
toml: improve inline-table parsing (#12307) 2021-10-26 17:00:41 +03:00
Larpon
9a3967bd7d
toml: improve comment support (#12305) 2021-10-26 16:58:05 +03:00
Larpon
8a4756819a
toml: disallow unclosed arrays (#12273) 2021-10-22 20:30:29 +03:00
Larpon
42359d8915
toml: fix error return in value parsing (#12097) 2021-10-07 15:51:18 +03:00
Larpon
bc4aad5fb4
toml: add quote details to ast.Quoted (#11997) 2021-09-28 17:40:03 +03:00