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

224 Commits

Author SHA1 Message Date
7458b699d0 fmt: change [1,2,3]!! to [1,2,3]! (#8081) 2021-01-13 08:32:17 +01:00
254df0ca62 fmt: improve string quotes (#8075) 2021-01-13 06:05:27 +01:00
0e490766df fmt: do not move single line block comments to previous line (#8046) 2021-01-13 03:30:24 +01:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
5f95dd54bd builtin: rename any_* -> *_literal - 2. part (#8032) 2021-01-11 22:58:15 +01:00
c1b1ec9005 fmt: keep same line comment in array init (#7980) 2021-01-10 21:06:48 +01:00
2103d9a6c4 fmt: keep new line at both ends of block comment (#8003) 2021-01-10 21:06:29 +01:00
d96a1b8a5f fmt: intelligent newlines for trailing arg syntax (#7748) 2021-01-10 17:39:37 +01:00
a8dd13f086 parser: change array decompose syntax (#7965) 2021-01-09 22:48:23 +01:00
e79695e8fc fmt: keep comments after call_expr in vscript (#7990) 2021-01-09 22:47:33 +01:00
29c2240aef fmt: enable or block for ch <- x (#7969) 2021-01-08 21:39:21 +01:00
cbe7740d97 fmt: do not generate import statements for auto imports (#7966) 2021-01-08 17:42:40 +01:00
46a5c487c1 parser,fmt: implement [manualfree] module abc for opting out *all* fns in a given .v from autofree 2021-01-08 17:24:42 +02:00
653121bad9 fmt: test bin2v output formatting (#7926) 2021-01-07 21:36:59 +01:00
eaba21d81a fmt: keep the shebang header in vsh files (#7893) 2021-01-05 16:14:16 +02:00
5841d5d8e1 all: implement basic comptime field selector (#7888) 2021-01-05 16:11:43 +02:00
a7a8e659f6 fmt: keep generic type in method call (#7874) 2021-01-05 01:29:58 +01:00
7c9fb73b3f vfmt: fix comments before ...f in Abc{...f} (#7870) 2021-01-04 21:01:35 +02:00
164d7bf5fb parser: struct updating syntax with Abc{...oldabc newfield: val} (#7865) 2021-01-04 20:19:03 +02:00
b9c6011602 parser: support casting to a pointer to array (#7861) 2021-01-04 18:22:04 +02:00
dd516858d4 fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
22e54e6703 fmt: fix formatting array decomposition (#7835) 2021-01-03 16:19:43 +01:00
91a1a2877b fmt: add a test for struct embed (#7831) 2021-01-03 15:41:19 +01:00
b3de003302 fmt: fix broken formatting in fn struct fields (#7794) 2021-01-02 16:36:31 +01:00
cf441091f1 fmt: AnonFn with body is not single line (#7659) 2020-12-28 20:27:27 +02:00
2360762a42 fmt: fix unexpected comment, expecting struct key for trailing arg syntax (#7658) 2020-12-28 20:26:24 +02:00
4783503185 fmt: keep interface comments between methods (#7650) 2020-12-28 18:14:55 +02:00
97bfabf194 fmt: heavily refactor and improve/fix logic for structs that use short args syntax (#7653) 2020-12-28 18:14:08 +02:00
ef6011b94c fmt: keep comments after struct decl default value (#7648) 2020-12-28 15:38:21 +02:00
06fdf34214 fmt: unwrap long single line ifs (#7608) 2020-12-27 14:20:30 +01:00
c9081a8df8 fmt: improve conditions for single line if 2020-12-27 12:59:28 +01:00
9a5bbc3101 fmt: use single quotes around fixed string arr default expr (#7581) 2020-12-26 15:12:25 +02:00
693e5137eb fmt: cleanup copy pasta for array_init (#7579) 2020-12-26 14:22:50 +02:00
f707e13b3f fmt: keep order by in orm blocks (#7576) 2020-12-26 14:18:09 +02:00
e7ca5dd17a fmt: update expr_is_single_line for MatchExpr, StructInit and CallExpr with or block (#7564) 2020-12-25 21:43:50 +02:00
2c0fba5480 fmt: keep comment between enum fields (#7566) 2020-12-25 21:41:59 +02:00
8cd74df2f3 vfmt: keep UnsafeExpr linebreacks as set by developer (#7558) 2020-12-25 16:52:16 +02:00
691e6f9d3f fmt: keep any langauge prefix variations in struct fields (#7534) 2020-12-24 13:36:54 +02:00
fec9f1324c fmt: trim space in embedded comments (#7521) 2020-12-24 11:57:48 +01:00
b27f5c378c all: reimplement struct embedding with methods (#7506) 2020-12-23 19:12:49 +01:00
a6e6c48c36 fmt: keep _ separator in number literals (#7495) 2020-12-23 14:48:43 +02:00
a2cd1b163c fmt: keep empty curlies and parenthesis as they are (#7329) 2020-12-22 23:43:48 +01:00
c4aae2b55f vfmt: do not replace module aliases in fn param and return types (#7472) 2020-12-22 22:38:13 +02:00
97855eca93 ci: fix the failing build-module-docs job 2020-12-22 17:25:57 +02:00
fb0c4556fd vfmt: keep JS object name (#7462) 2020-12-22 15:32:49 +02:00
304aafdc50 fmt: add a space after + operator/method overload (#7453) 2020-12-21 21:20:00 +02:00
04757a4853 vfmt: fix struct Abc { field fn() ? } 2020-12-18 11:32:04 +02:00
c922565525 fmt: only insert a space after // if the 3rd char is alphanumeric (#7330) 2020-12-15 04:26:28 +01:00
9b139c58ca fmt: keep module alias in struct decl field types (#7305) 2020-12-14 05:03:43 +01:00
d59c5b01e1 fmt: intelligent line wrap for trailing struct syntax (#7309) 2020-12-14 05:03:17 +01:00