Commit Graph

10195 Commits (535dcac8fad711546756e026423d1875312cfb3a)

Author SHA1 Message Date
penguindark 1343787009
builtin: fix interpolation bug for `${x:g/G}`, where `x` is a zero or an infinity (#10271) 2021-05-30 19:30:18 +03:00
Uwe Krüger aa861d1cac
docs: describe array/slice behaviour (#10252) 2021-05-30 14:48:33 +03:00
yuyi 13ddfaa433
checker: fix generic fn infer nested struct (#10262) 2021-05-30 14:06:52 +03:00
yuyi c67891d69f
checker: minor cleanup in match_expr() (#10261) 2021-05-30 13:33:19 +03:00
Thomas Treffner ba86d619fa
builtin: fix print/println on termux (#10253) 2021-05-30 08:10:32 +03:00
Delyan Angelov b29bc9cdce
checker: fix panic on `fn abc()?{ return error() }` 2021-05-29 23:46:56 +03:00
Bastian Buck d6e462a6ca
os: fix os.is_link and os.symlink on windows, add new functions os.getppid, os.getgid, os.getegid (#10251) 2021-05-29 23:26:13 +03:00
yuyi e4f6369cd1
checker: fix match error to none (#10245) 2021-05-29 19:30:57 +03:00
lydiandy 43acda083a
cmd/tools/vast: add comments and cleanup code (#10246) 2021-05-29 17:05:05 +03:00
Uwe Krüger 2d8a136d6e
os: fix file read (#10247) 2021-05-29 16:53:42 +03:00
Uwe Krüger 15557161cc
builtin: add trailing `0` to reversed string (#10248) 2021-05-29 16:45:26 +03:00
Uwe Krüger bd467f94ab
encoding: append `0` to strings for compatibility (#10249) 2021-05-29 16:31:52 +03:00
Uwe Krüger 0ff2d9ef78
strconv: fix memory corruption (#10250) 2021-05-29 16:24:09 +03:00
Delyan Angelov 7287ecd6c7
ci: skip too slow tests in any sanitize mode, use VTEST_RUN_FSANITIZE_TOO_SLOW to override 2021-05-29 12:15:10 +03:00
Delyan Angelov bb6907473b
ci: add the slowest tests in skip_with_fsanitize_memory 2021-05-29 11:38:53 +03:00
yuyi 8785599094
checker, cgen: fix optional with if expr (#10242) 2021-05-29 10:00:12 +03:00
KJ Lawrence 465860e418
gg: fix ctx.scale for circles (#10210) 2021-05-28 22:37:02 +03:00
Lukas Neubert ddcc22a778
fmt: fix removal of selective imported map key type (#10235) 2021-05-28 22:29:03 +03:00
Lukas Neubert 6b683d31ac
v.parser: support imported enums as map keys (#10234) 2021-05-28 20:09:03 +03:00
lydiandy e09f0234ea
tools: add `v ast file.v` (#10236) 2021-05-28 19:54:44 +03:00
yuyi 9ea753e853
checker: fix generic with fixed array parameter (#10233) 2021-05-28 18:51:55 +03:00
penguindark 7089ff3957
builtin: fix a bug in str_intp (#10238) 2021-05-28 18:44:30 +03:00
Alexander Medvednikov ca8158ac41 parser: handle casts in match expressions; c2v: minor fixes 2021-05-28 17:59:43 +03:00
KJ Lawrence 9fab4af3f1
gg: update the mouse click callback to pass what mouse button was clicked too (#10225) 2021-05-28 12:46:23 +03:00
yuyi 6e493ca8ca
checker: check index_expr or_expr types mismatch (#10224) 2021-05-28 11:40:59 +03:00
Delyan Angelov 39de06c200
v.pref: cleanup V options, support the documented -output and -backend 2021-05-28 09:07:06 +03:00
Lukas Neubert 8a109b031c
fmt: minor optimization in call_expr (#10228) 2021-05-27 22:40:54 +03:00
Enzo df2b688337
checker: cleanup type alias pascal case check (#10217) 2021-05-27 22:40:32 +03:00
Wertzui123 a095a27d00
gg: change vid to ved in a comment (#10218) 2021-05-27 20:14:36 +03:00
Ruofan XU 4e55b9c08e
example: improve binary search tree example (#10226) 2021-05-27 20:13:02 +03:00
Delyan Angelov 2b62dca000
v: support for `$if threads {}, depending on whether `go ` was used at all (#10227) 2021-05-27 18:36:07 +03:00
KJ Lawrence 6cdc7646b8
gg: add quit fn (#10223) 2021-05-27 17:56:18 +03:00
Uwe Krüger 8828054e5b
builtin: fix arrays/slices memory bug (#10219) 2021-05-27 15:50:06 +03:00
Khaled Hammouda 25645dbc44
docs: fix channel select example (#10213) 2021-05-27 12:47:13 +03:00
Anton Zavodchikov 539594bfce
sqlite: add error struct for optional result (#10209) 2021-05-27 12:45:34 +03:00
Lukas Neubert d5cacd1e5f
ast: use string builder for StringInterLiteral.str() (#10207) 2021-05-27 10:17:51 +03:00
Anton Zavodchikov 9ee1d8c848
doc: decrease letter count for search to 2 (#10214) 2021-05-27 10:17:25 +03:00
zakuro 607dbd36d7
parser: set is_public of TypeSymbol for fn type decl (#10212) 2021-05-27 10:17:08 +03:00
yuyi 7c0cd2f41d
checker, cgen: fix match with complex sumtype exprs (#10215) 2021-05-27 10:13:50 +03:00
Alexander Medvednikov 2abbbcc02d checker: allow int <=> enum usage in c2v'ed code 2021-05-26 11:00:57 +03:00
Delyan Angelov 6c40781d84
ci: vfmt cmd/tools/fast/fast.v 2021-05-26 09:49:22 +03:00
Alexander Medvednikov 9ea7eda9c0 tools/fast: -usecache for hello world 2021-05-26 09:33:42 +03:00
penguindark 2dd1d3fcbb
all: string interpolation code cleaning (#10204) 2021-05-26 09:30:08 +03:00
Joe Conigliaro 5e26273529
cgen: use __new_array instead of __new_array_with_default for empty vargs 2021-05-26 15:48:48 +10:00
Joe Conigliaro 560301dbfe
cgen: dont preallocate zero length with capacity of 1 2021-05-26 14:51:20 +10:00
yuyi cf07375d1b
checker: fix multi types generic struct init (#10201) 2021-05-25 19:51:55 +03:00
Enzo 39c376bb5b
builtin,gen: use operator overloading on ustring (#10197) 2021-05-25 14:51:48 +03:00
Enzo 0d25106b4d
cmd/tools/vpm: improve v show (#10198) 2021-05-25 14:30:48 +03:00
joe-conigliaro 4217f05146
checker/ci: workaround bug causing errors with -usecache (sumtype field access) & add more -usecache tests (#10199) 2021-05-25 12:28:18 +03:00
R cqls 5b8402bccb
parser: fix mod_path_to_full_name to be compliant with --path option (#10149) 2021-05-25 07:46:40 +03:00