110 Commits

Author SHA1 Message Date
Delyan Angelov
3271c728d5 docs: use cmd/tools/find_doc_comments_with_no_dots.v to put some missing dots in the doc comments of public symbols. 2025-07-02 15:45:47 +03:00
leopardracer
f3fb8b46ad
flag,net.websocket: fix typos in errors, traces and comments (#24251) 2025-04-16 17:34:15 +03:00
kilavvy
8aef3c72b4
all: fix typos in documentation files (#23822) 2025-02-28 02:42:55 +03:00
Delyan Angelov
16a6e45274
gg: fix ./v -gc none -autofree run examples/tetris/ (avoid return s1 + s2 + s3, clone the arrays, passed to the fontstash wrapper) 2025-02-07 14:29:43 +02:00
Kim Shrier
504ec54be1
flag: fix minor typo (#23512) 2025-01-19 00:59:44 +03:00
larpon
dad8e3c766
flag: add missing short flag match in flag.to_struct, add test (#22696) 2024-10-30 17:31:31 +02:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
yuyi
15bf8222b9
flag: fix parse_bool_value() with different order short args (fix #22176) (#22242) 2024-09-17 20:07:23 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
larpon
d27ab09cdf
flag: add a relaxed parsing mode, that turn flag match errors into no_match entries instead (#22191) 2024-09-10 17:04:40 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
larpon
625e4df49a
flag, tests: inline a few consts (#22174) 2024-09-07 18:21:03 +03:00
larpon
620e064110
flag: fix parsing flag.FlagParser style short flags in to_struct[T] (#22172) 2024-09-07 14:57:15 +03:00
larpon
0d35f0948c
flag: correct bool logic, add test (#22162) 2024-09-04 23:13:50 +03:00
yuyi
d5c2ebce05
flag: fix parse_bool_value() (#22160) 2024-09-04 22:48:22 +03:00
larpon
04a3ecf617
flag: add support for parsing flag.FlagParser style flags in to_struct[T] (#22152) 2024-09-03 16:36:56 +03:00
larpon
21339fe167
flag: fix assigning to @[tail] field when no fields has been matched yet in flag.parse[T]() (#22043) 2024-08-13 20:47:57 +03:00
Kim Shrier
95ff9340ea
flag: add custom value descriptions for bool, int, and float flags too (#22032) 2024-08-12 01:13:27 +03:00
Kim Shrier
20a525ae74
flag: add optional value description to string parameters (#22024) 2024-08-11 13:01:41 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +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
Swastik Baranwal
69bc4be512
builtin: add s.trim_space_left/0 and s.trim_space_right/0 methods (#21903) 2024-07-21 22:38:59 +03:00
larpon
60089d61e5
flag: fix rendering bug, make newline logic/code more readable and clean (#21896) 2024-07-20 13:55:30 +03:00
larpon
3bc6d30b69
flag, examples: add compact to flag.DocOptions (#21888) 2024-07-18 09:19:58 +03:00
larpon
e8eda21038
flag: add flag.using[T]()! that uses an existing instance of T (#21865) 2024-07-14 16:53:47 +03:00
Felipe Pena
769e9147c3
v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
larpon
6f61e30062
flag: add flag.to_struct[T]()! and flag.to_doc[T]()! + tests (#21845) 2024-07-13 12:33:03 +03:00
Turiiya
9fb9443a72
flag: include args after end-of-options(--) when checking min and max args (#21310) 2024-04-19 21:12:00 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
JalonSolov
01022e918e
flag,json,net: handle C calls in .v files (part of enabling -W impure-v as default) (#19779) 2023-11-06 14:27:00 +02:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
Xavier Mitault
78c34326f1
flag: remove warning in the example in the readme (#19238) 2023-08-30 08:47:29 +03:00
yuyi
6af17a86e2
flag: cleanup in flag.v (#19237) 2023-08-29 18:08:14 +03:00
yuyi
815439a381
checker: fix assigning an array slice (fix #19120) (#19137) 2023-08-15 20:37:51 +03:00
yuyi
11fa28edff
flag: fix finalize with multiple shortargs (#18544) 2023-06-24 20:35:44 +03:00
Ikko Eltociear Ashimine
43093311b6
flag: fix typo in flag.v (#18109) 2023-05-04 21:23:02 +03:00
James Hegedus
2179db37ee
flag: fix typo in uknown flag struct (#17375) 2023-04-14 14:42:11 +03:00
yuyi
467a1b4435
fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
Alexander Medvednikov
c6158e4519 all: remove unnecessary IError() casts 2022-10-28 19:08:30 +03:00
yuyi
f6844e9766
all: change optional to result of io (#16075) 2022-10-16 09:28:57 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Tim Basel
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