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

405 Commits

Author SHA1 Message Date
d80f5165dd fmt: keep trailing comments after fn header decl (#13596) 2022-02-25 16:36:48 +03:00
73f931b52e fmt: improve single line const comment placement (#13595) 2022-02-25 14:46:12 +02:00
f68144774d fmt: fix map missing a comma after enum keys, leading to non parsable code (#13481) 2022-02-16 21:08:29 +02:00
9d0a5942ac builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
c9a8d6448d fmt: preserve formatting with comments in a empty map (#13362) 2022-02-05 10:05:35 +02:00
291a1ffd8d token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
Ken
9cbfa882e6 ast: support attributes for ast.SumType (#13010) 2022-01-08 17:35:10 +03:00
35282396ec all: inline sum types (#12912) 2021-12-25 18:26:40 +03:00
1028f0b59e fmt: fix error of generic struct_init using module (fix #12893) (#12935) 2021-12-22 19:11:09 +02:00
278c08704c all: support slices with negative indexes #[start..end] (gated arrays) (#12914) 2021-12-22 16:34:02 +03:00
e5e3979e45 fmt: fix removal of selective imported types used in type decl (#12868) 2021-12-17 05:20:16 +02:00
eed882950c fmt: remove extra comma of branch instead of parse error (#12814) 2021-12-14 08:14:43 +02:00
9bf777c1ee vfmt: fix eating .zlib in $embed_file('v.png', .zlib) (#12794) 2021-12-11 15:21:26 +02:00
7379488cee fmt: fix bug that adds unnecessary module name to generic types (#12758) 2021-12-08 22:33:58 +02:00
93bdff5589 fmt: remove unnecessary paren in assert stmt (#12546) 2021-11-23 07:30:54 +02:00
b5e410e408 fmt: format explicit map init with parameter (#12499) 2021-11-18 08:34:30 +03:00
61b99e1915 vfmt: handle comments right after interface fields 2021-11-13 13:42:17 +02:00
823a3ab838 fmt: fix removal of selective imported types used as type parameter (#12431) 2021-11-11 07:15:30 +02:00
242b99340d vfmt: fix bug where duplicated comma is placed before comment in array init (#12281) 2021-10-24 12:05:34 +03:00
f2cda1a529 parser: update p.inside_or_expr consistently (fix v fmt -w vls/analyzer/symbol_registration.v) 2021-10-19 13:36:10 +03:00
c9b2f878b3 parser, checker: optimize checking generic struct type mismatch (#12179) 2021-10-15 00:11:31 +03:00
7bc3e67e24 fmt: fix import with symbols (fix #12065) (#12069) 2021-10-05 11:44:48 +03:00
ce0867f40c vfmt: fix removal of selective imported type used in map (#12030) 2021-10-01 15:14:21 +03:00
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
7bd145d88a os,net: cleanup deprecated @VROOT usages 2021-09-19 16:24:24 +03:00
9180647f99 scanner, fmt: fix multi-level generics (#11517) 2021-09-17 21:44:31 +03:00
fb20a92b1e fmt: fix a bug that break generics call in string inter (#11468) 2021-09-11 04:47:22 +03:00
c8471528ce fmt: format long sum-types with a line for each type (#11461) 2021-09-10 20:56:55 +03:00
e5360e164a fmt: remove unnecessary parentheses after return (fix #11423) (#11435) 2021-09-08 14:19:53 +03:00
aefe267970 fmt: fix removal of selective imported generic type (#11395) 2021-09-05 17:59:35 +03:00
19a43db2de fmt: fix removal of comment before embed in struct (#11384) 2021-09-04 11:02:04 +03:00
f44eb88a8d vfmt: fmt '!(a in/is b)' to 'a !in/is b' (#11335) 2021-08-30 09:45:36 +03:00
16455a7660 fmt: preserve local fn parameter, when a module const with the same name is declared 2021-08-27 09:22:53 +03:00
b635ff80de fmt: format '1.' to '1.0' (#11312) 2021-08-26 07:18:27 +03:00
4d078edb72 scanner: no longer allow 1. float literals (#11301) 2021-08-25 14:39:37 +03:00
3d22dc1608 all: fix formating Foo<A,B> to Foo<A, B> (#11225) 2021-08-18 17:17:21 +03:00
7c9a1defa4 fmt: preserve method receiver mutability in interface decls (#11222) 2021-08-17 19:39:53 +03:00
da53f818df all: initial support for closures (x64 / linux-only) (#11114) 2021-08-10 21:27:15 +03:00
aceaaa681d ast: fix formatting fn variadic of reference param (#11130) 2021-08-10 21:14:37 +03:00
490dec222f fmt: keep char literal, ' (#11060) 2021-08-06 06:21:28 +03:00
800c0e5092 vlib: remove deprecated map{} usages as well as deprecated functions (#11035) 2021-08-04 12:44:41 +03:00
1e5627e777 parser: don't require unary > prefix for select timeout (#10928) 2021-07-23 23:24:27 +03:00
5e4cbcc1e3 fmt: unify struct field align code (#10887) 2021-07-23 12:12:09 +03:00
3cc54d8e81 vfmt: split up asm code into more granular methods, add test (#10878) 2021-07-23 08:58:06 +03:00
38100faecf fmt, parser: fix pos.last_line for assembly blocks (#10877) 2021-07-21 11:48:12 +03:00
ad3835b598 parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
6edfb2c7fe v.parser: eliminate PrefixExpr from &Type(x).name and &Type(x)[idx] too (fix vinix build) 2021-07-17 20:20:20 +03:00
bd0653abab parser: cleanup &Type(x) more, add fmt regression test 2021-07-13 13:12:37 +03:00
974737f26b vfmt: keep module mymodule ... x := []thread MyStruct{} as it is 2021-07-12 10:46:36 +03:00
cb14e42af8 fmt: fix removal of selective imported Enum (#10729) 2021-07-10 11:06:01 +03:00