Commit graph

2243 commits

Author SHA1 Message Date
Delyan Angelov
6dbf9c9155
parser: fix more edge case panics on fuzzed V source code in vlib/v/parser/testdata/silent/ 2024-08-20 16:11:59 +03:00
Delyan Angelov
c92577e6ed
parser,scanner,ast: make the scanner and parser more robust, by implementing more limits (preventing panics, discovered by fuzzing) 2024-08-20 15:15:24 +03:00
yuyi
cb58db56ef
all: change empty comment to newline (#22053) 2024-08-16 12:09:30 +03:00
yuyi
38e23a76f3
fmt: fix interface fields/methods alignment (#22055) 2024-08-16 11:35:53 +03:00
yuyi
4bce71e12f
fmt: fix enum/struct_decl/struct_init fields with empty newlines (#22051) 2024-08-15 17:28:52 +03:00
Delyan Angelov
a7e733538e
tools: colorise the output of cmd/tools/show_ancient_deprecations.v, reduce false positives (#22048) 2024-08-15 11:39:41 +03:00
larpon
198d4f49ef
tools: add a few missing v command entries and their flags in v complete (#22041) 2024-08-13 18:14:42 +03:00
Delyan Angelov
e862aa004d
tools: support a -fix option in v check-md file.v to make usage easier on Windows. Add an usage hint on formatting errors. 2024-08-13 18:05:37 +03:00
Kim Shrier
ac3045b472
tools: add an amalgamate tool and description of usage (#22034) 2024-08-12 10:51:08 +03:00
Kim Shrier
42d99ba872
tools: sort the match results in the vwhere test, to make it less flaky (#22033) 2024-08-12 01:11:21 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
Delyan Angelov
a741db43f3
checker: add a deprecation warning for const () groups (an error after 2025-01-01) (#22019) 2024-08-10 22:04:49 +03:00
Delyan Angelov
9d61a9185b
tools: reduce number of os/fs calls done by v where; ignore tests/ folders 2024-08-10 20:41:02 +03:00
Delyan Angelov
2875086717
tools: make v where ignore .git/ folders (they contain binary files); let -dir . work recursively, so that -dir vlib works 2024-08-10 20:23:22 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
Delyan Angelov
d94473e1d4
tests, tools: add short command tests in v test-all, to ensure -d trace_http_request and -d trace_http_response do not regress (#21981) 2024-08-02 01:17:39 +03:00
larpon
ef0457d6e3
sokol: update to match upstream at c0e0563 (#21971) 2024-08-01 01:44:50 +03:00
Delyan Angelov
1b7b8123ca
vrepl: suppress the welcome message, if VQUIET is set (#21941) 2024-07-27 11:34:42 +03:00
Alexander Medvednikov
7baff15c39 V 0.4.7 2024-07-26 07:41:00 +03:00
Delyan Angelov
1d13289b86
markused: mark explicitly all used array and map methods with -skip-unused (fix #21907) (#21914) 2024-07-23 17:42:59 +03:00
Delyan Angelov
c6b6130529
tools: update the report template used by v bug file.v 2024-07-23 17:05:14 +03:00
yuyi
0ebf184cb5
vrepl: fix handling of multi-line type declaration syntax errors (#21902) 2024-07-21 13:58:15 +03:00
yuyi
6d4f167f48
vrepl: fix handling of single-line type declaration syntax errors (#21895) 2024-07-20 04:40:12 +03:00
yuyi
2ffe3175a1
vrepl: fix type declaration (#21891) 2024-07-18 09:25:02 +03:00
yuyi
6d3a2acf23
vrepl: fix const declaration and single line struct/enum/interface (#21887) 2024-07-17 18:02:50 +03:00
yuyi
e9652f86c5
vrepl: fix enum and interface declarations (#21886) 2024-07-17 12:13:16 +03:00
yuyi
adb85e05f9
vrepl: minor cleanup in run_repl() (related #21879) (#21881) 2024-07-17 08:37:59 +03:00
yuyi
22d2d1aa2d
vrepl: fix structure definition (#21879) 2024-07-16 14:19:02 +03:00
yuyi
5c2d64a235
vrepl: minor cleanup in current_source_code() (#21863) 2024-07-13 17:32:10 +03:00
yuyi
510500d21b
vrepl: fix error of undefined ident (#21861) 2024-07-13 12:34:20 +03:00
yuyi
48ab08c206
vrepl: fix infix shift operation (#21855) 2024-07-13 00:08:52 +03:00
Delyan Angelov
f91f4d94ea
v: add a TOTAL line, to the output of -show-timings, to minimise the need for external tools on windows (#21847) 2024-07-12 01:42:41 +03:00
yuyi
65966aef65
vrepl: fix one-line if exprssion (#21838) 2024-07-10 15:27:11 +03:00
yuyi
70e78cc766
vrepl: cleanup in vrepl.v (#21834) 2024-07-09 21:04:59 +03:00
yuyi
bf23b2ef46
vrepl: fix arbitrary script execute (#21818) 2024-07-08 12:56:57 +03:00
yuyi
1571645b00
vrepl: fix os.input() (#21811) 2024-07-06 21:36:04 +03:00
yuyi
cb42f32852
v.token: make is_assign() contain .decl_assign (#21805) 2024-07-05 12:52:54 +03:00
yuyi
35e6a40c0e
vrepl: fix variable name starts with print (#21806) 2024-07-05 12:47:24 +03:00
yuyi
a67bfebe95
vrepl: fix output of the fn call (related #21792) (#21800) 2024-07-04 20:50:31 +03:00
yuyi
8188f65590
vrepl: fix method call (fix #21788) (#21792) 2024-07-03 17:58:17 +03:00
Delyan Angelov
62e2b7fbdb
fmt: keep manual newlines after fn parameters in fn declarations, do not auto wrap (#21795) 2024-07-03 17:33:48 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
larpon
78b77b9f14
comptime: support -d ident=value and var := $d('ident', 0) (#21685) 2024-06-19 07:24:16 +03:00
Delyan Angelov
fb32951abd
tools: make the summary output of v repeat more informative 2024-06-18 08:47:09 +03:00
Delyan Angelov
041f2b3d3a
tools: fix measurements for ./v repeat "./vold -o x project/" "./vnew -o x project/" 2024-06-18 07:45:42 +03:00
Turiiya
e2848e1348
tools: don't write vpm logfiles in CI runs (#21649) 2024-06-07 11:05:05 +03:00
Felipe Pena
1e86e06eb6
orm: fix subquery without where expr (#21598) 2024-06-04 13:22:06 +03:00
Alexander Medvednikov
4884396ee6 vdoc: fix multiline js string generation in search_index.js 2024-06-02 10:35:50 +03:00