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

87 Commits

Author SHA1 Message Date
Nick Treleaven
9e751f72c4 doc, fmt: use map{key: value} syntax for map literals (#8623) 2021-02-08 16:57:42 +02:00
Delyan Angelov
02bef1ae2b vdoc: fix segfault on v doc -m -f html vlib 2021-02-02 17:38:32 +02:00
Lukas Neubert
5aaeac79fa ci: fix compilation (#8511) 2021-02-02 12:06:54 +02:00
Delyan Angelov
728344ff65 ci: fix v test-cleancode 2021-01-25 12:55:01 +02:00
Lukas Neubert
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
joe-conigliaro
97ebecc5f4 usecache: get all tests running with -usecache enabled by default (p.1) (#7699) 2021-01-20 06:04:59 +01:00
Lukas Neubert
371730f8a8 fmt: correct indent for StructDecl multi line default exprs (#8148) 2021-01-17 05:01:55 +01:00
zakuro
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
Larpon
41e9a769e9 doc: fix README embedding (#7929) 2021-01-07 20:25:29 +01:00
Larpon
30a2f125ef doc: add comment example support (#7924) 2021-01-06 19:43:43 +01:00
zakuro
dd516858d4 fmt: align struct field comments (#7632) 2021-01-03 21:10:25 +01:00
Lukas Neubert
06fdf34214 fmt: unwrap long single line ifs (#7608) 2020-12-27 14:20:30 +01:00
Daniel Däschle
6842c3c1a4 vdoc: add a node type prefix (#7563) 2020-12-26 08:55:35 +02:00
Lukas Neubert
e7ca5dd17a fmt: update expr_is_single_line for MatchExpr, StructInit and CallExpr with or block (#7564) 2020-12-25 21:43:50 +02:00
Lukas Neubert
c4aae2b55f vfmt: do not replace module aliases in fn param and return types (#7472) 2020-12-22 22:38:13 +02:00
Ned Palacios
2ba8d31118 vdoc: fix sorting; fix missing symbols; document functions (#7161) 2020-12-07 02:43:25 +01:00
spaceface777
50a3009113 fmt: make single-stmt or blocks single-line (#7126) 2020-12-04 13:25:23 +02:00
Delyan Angelov
b11d285680 v: support multiple paths in VMODULES env variable (#7048) 2020-11-30 18:31:37 +01:00
Daniel Däschle
7d6f97259f all: refactor UnionSumType to SumType (#6944) 2020-11-25 13:09:40 +02:00
Daniel Däschle
a042966082 all: remove old sumtype code (#6937) 2020-11-24 17:55:24 +01:00
Daniel Däschle
aa6303f0b2 all: use the new types with old syntax (#6922) 2020-11-24 13:58:29 +01:00
Daniel Däschle
838ad16296 all: refactor ast.Expr to use the new sum type implementation (#6792) 2020-11-21 00:05:57 +01:00
Ned Palacios
7c2c187743 vdoc: fix markdown and plaintext rendering (#6882) 2020-11-20 12:02:52 +02:00
Nick Treleaven
40e7b0eeb3 doc: use fixed-width symbol name at start of comment 2020-11-15 12:58:58 +00:00
Daniel Däschle
6271798ce3 cgen: union sum types implementation (#6745) 2020-11-11 09:18:15 +01:00
Delyan Angelov
4b35495fbe all: support VMODULES environment variable (defaulting to ~/.vmodules) 2020-11-08 08:07:17 +02:00
Ned Palacios
ccc0cb23ed doc: store source content, restructure module directory (#6692) 2020-10-29 17:21:37 +01:00
Delyan Angelov
0c192cfd64 tests: fix warnings when doing ./v -W -progress -check-syntax test-fixed 2020-10-26 14:41:57 +02:00
Ned Palacios
5b1ab3b0bb vdoc: use maps, enum-based categorization; fixes (#6659) 2020-10-21 11:26:33 +03:00
Alexey
74ebce6b1f vdoc: fix generating documentation for 3rd-party modules (#6651) 2020-10-20 02:52:56 +02:00
Enzo
b083f4014b fmt: fix multiple things and format most of the compiler (#6631)
Format expressions inside string interpolation like the rest (it used to be a+b instead of a + b, not too sure why)
Fix formatting some match branches when there were only one statement inside (it was inlined)
Fix parsing and formatting some comments edge case on struct field init. You should check out this test because the result is a bit different from before. I personally find it more logical but I would understand if the former format was to stay
Fix formatting of void-returning function signature
2020-10-15 22:12:59 +02:00
Delyan Angelov
31ef921ef2 ci: fix warnings/errors due to the vfmt change 2020-10-15 16:17:52 +03:00
JalonSolov
a4cc1ab7e3 all: cleanup more match statements (#6616) 2020-10-15 08:08:27 +03:00
Alexander Medvednikov
194c2c926e doc: use the new table.type_to_str 2020-10-13 16:46:56 +02:00
Ned Palacios
fc375a40f8 x.json2: add fast_raw_decode; support for i64 and f32 (#6586) 2020-10-09 16:11:55 +02:00
Alexander Medvednikov
d2d3289a2a all: mark pref.Preferences field as immutable 2020-10-06 06:24:50 +02:00
Ned Palacios
2b1a5d7a56 vdoc: move local scope-based doc generation to its own function (#6565) 2020-10-05 07:59:17 +02:00
Alexander Medvednikov
f534edc371 doc: replace os.base_dir with os.dir 2020-10-01 01:30:22 +02:00
Ned Palacios
744f685973 vdoc: document variables in a specific pos/scope; support v doc os File (#6354) 2020-09-21 17:40:39 +03:00
Alexander Medvednikov
78e28a72ed doc: vfmt and make compile 2020-09-09 14:24:42 +02:00
Delyan Angelov
d80843bf53 vdoc: parse with enable_globals: true 2020-08-28 08:53:12 +03:00
Delyan Angelov
9c9533dad9 checker: add error for fn f() Struct { return &Struct{} } (#6019) 2020-07-29 21:40:43 +02:00
Enzo
90d9040e6e all: make comment expressions + fix vfmt array init (#5851) 2020-07-17 19:13:22 +02:00
Delyan Angelov
26768e8514 vfmt: strip current_module. in fn args more robustly 2020-07-11 16:09:20 +03:00
Daniel Däschle
c5dc1a33b6 all: remove it smartcast and replace with original variable name (#5764) 2020-07-09 17:14:14 +02:00
Daniel Däschle
5ea17ad2d4 all: if smartcast part 2 (#5754) 2020-07-08 15:46:58 +02:00
Delyan Angelov
fe50bdc164 vfmt: ran v vet vlib/v/ and fix spaces 2020-07-04 16:19:54 +03:00
Delyan Angelov
35431d457b checker: add check for strict .str() method signature 2020-07-04 14:14:43 +03:00
Ned Palacios
025652bb78 vdoc: dd .vdocignore + minor fixes 2020-06-29 11:03:09 +02:00
Ned Palacios
5ff7d07138 vdoc: fix sorting + other minor improvements 2020-06-19 10:36:45 +02:00