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
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
25153490e1 fmt: keep comments after assign on same line (#7269) 2020-12-11 19:20:24 +02:00
d7ff342ab3 fmt: fix formatting in anon_fn_as_param_keep.vv 2020-12-11 21:13:18 +11:00
1626aa5500 fmt: make test clearer 2020-12-11 21:09:36 +11:00
d1224ffb5a parser: error on non local array/map methods & add tests 2020-12-11 20:50:26 +11:00
0e7192c9b7 fmt: keep comments in struct init without fields (#7212) 2020-12-09 16:35:03 +02:00
338f3afd31 vfmt: fix type MyFn = fn (int) int mut arr := []MyFn{} 2020-12-09 15:18:45 +02:00
3b6b5b8090 vfmt: properly parse comments on lines after init fields (#7202) 2020-12-09 11:11:22 +02:00
028c82e255 fmt: improve map value alignment (#7105) (#7151) 2020-12-06 02:04:45 +01:00
50a3009113 fmt: make single-stmt or blocks single-line (#7126) 2020-12-04 13:25:23 +02:00
02ba923ba7 fmt: do not add braces for trailing struct arg (#7072) 2020-12-04 11:22:26 +02:00
dedb8f7e41 fmt: smarter wrap of orm lines (#7070) 2020-12-02 04:06:20 +01:00
8adc8ed103 parser: do not fail on comment direct after import (#7071) 2020-12-01 22:32:34 +02:00
a98162118b fmt: orm delete (#7035) 2020-11-30 14:02:36 +01:00
ff63fb74d9 dont allow method on non-local types & no mod for arrays. closes #6971 2020-11-30 11:43:22 +11:00
3afa606154 vfmt: fix eating c in c'foo' (#7009)
* fmt: add formatting for cstrs

* fmt
2020-11-29 10:39:50 +02:00
7d6f97259f all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
a042966082 all: remove old sumtype code (#6937) 2020-11-24 17:55:24 +01:00
8be9bdacd1 fmt: do not wrap real multiline comments into single line in arrays (#6923) 2020-11-24 12:55:39 +01:00
2f9b7fe0f7 vfmt: fix error with return // comment (#6914) 2020-11-23 11:36:20 +02:00