crthpl
|
fafb035fb5
|
all: reimplement inline assembly (#8645)
|
2021-03-17 01:43:17 +01:00 |
Lukas Neubert
|
05b51c5b01
|
parser: correctly set pos of sql blocks (#9334)
|
2021-03-16 23:00:50 +02:00 |
Lukas Neubert
|
e554415123
|
fmt: allow ascii art block comments (#9332)
|
2021-03-16 20:49:55 +02:00 |
zakuro
|
80ac1aaf93
|
fmt: use type_to_str_using_aliases (#9306)
|
2021-03-15 06:27:08 +02:00 |
Lukas Neubert
|
f648e3f10d
|
fmt: use iembed cmts in arrays at line start when exprs come afterwards (#9285)
|
2021-03-13 09:58:50 +02:00 |
Lukas Neubert
|
cfbb783649
|
fmt: fix linebreak in non-block consts (#9260)
|
2021-03-12 12:27:05 +02:00 |
Lukas Neubert
|
a67d49050c
|
math: add a pure V `math.mathutil`, with generic `min`, `max` and `abs` functions (#9176), and use it consistently
|
2021-03-12 11:28:04 +02:00 |
Lukas Neubert
|
c40ab0db72
|
fmt: fix removal of attrs with comments afterwards (#9255)
|
2021-03-11 21:44:33 +01:00 |
Miccah
|
f26d2f02b7
|
ast, cgen, checker, parser: support method arguments in comptime $for (#9208)
|
2021-03-11 15:04:34 +02:00 |
Lukas Neubert
|
f69cef397c
|
fmt: do not insert a space before struct declaration generics (#9239)
|
2021-03-11 14:54:40 +02:00 |
spaceface
|
7d0cba5e96
|
v.ast: remove the `stmt.position()` method (#9233)
|
2021-03-11 14:50:02 +02:00 |
zakuro
|
00399b49ab
|
v.util: add util.tabs() (#9211)
|
2021-03-09 13:03:25 +02:00 |
Delyan Angelov
|
d7049ae2da
|
os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974)
|
2021-03-08 20:52:13 +02:00 |
zakuro
|
45d51c76da
|
v.util: add an iabs(x) helper (#9172)
|
2021-03-07 11:24:05 +02:00 |
Lukas Neubert
|
6048d0e974
|
fmt: fix backslash doubling in attribute string args (#9175)
|
2021-03-07 09:44:58 +02:00 |
Lukas Neubert
|
053d6870d2
|
fmt: respect user choice of empty lines between type declarations (#9135)
|
2021-03-06 21:05:55 +02:00 |
Lukas Neubert
|
fdcfe397d4
|
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc (#9136)
|
2021-03-06 21:04:51 +02:00 |
Lukas Neubert
|
043c29cf95
|
fmt: fix string interpolation with CastExpr (#9137)
|
2021-03-06 20:47:19 +02:00 |
zakuro
|
b83530e0ed
|
fmt: extract part of fmt.v into struct.v (#9141)
|
2021-03-06 20:40:44 +02:00 |
Lukas Neubert
|
7f7f9dca6b
|
parser,fmt: fix regression with non-void arrays in if conditions (#9161)
|
2021-03-06 20:39:38 +02:00 |
Delyan Angelov
|
849cde245c
|
v: support dump(expr) (#9160)
|
2021-03-06 18:09:28 +01:00 |
Lukas Neubert
|
ead2ba6004
|
fmt: proper single line check for ConcatExpr (#9121)
|
2021-03-05 15:36:49 +03:00 |
zakuro
|
9ba312066e
|
fmt: extract type decls code into functions to cleanup (#9126)
|
2021-03-05 15:34:51 +03:00 |
Lukas Neubert
|
80356edd8c
|
fmt: combine simple attributes into a single line (#9120)
|
2021-03-05 07:17:57 +02:00 |
Delyan Angelov
|
6da66226e5
|
vfmt: keep `mut:` in interface declarations (#9053)
|
2021-03-04 15:30:30 +02:00 |
Delyan Angelov
|
eb1e1afbc1
|
ci: fix failing fn_trailing_arg_syntax_keep.vv
|
2021-03-04 13:05:14 +02:00 |
zakuro
|
6b2c7fd53e
|
fmt: remove tail space when using multiline short arg (#9110)
|
2021-03-04 12:44:50 +02:00 |
Lukas Neubert
|
8ce53b8b55
|
fmt: prevent code corruption with struct update syntax as trailing function arg (#9091)
|
2021-03-04 12:44:17 +02:00 |
Lukas Neubert
|
28fc91acb7
|
fmt: minor cleanups (#9090)
|
2021-03-04 12:43:11 +02:00 |
zakuro
|
5b041db442
|
fmt: don't prepend mod when cast with selective imported types (#9109)
|
2021-03-04 12:33:52 +02:00 |
Lukas Neubert
|
0f8f8bd90d
|
fmt: force empty lines after struct declarations and most functions (#9096)
|
2021-03-03 23:56:40 +01:00 |
Lukas Neubert
|
460e06b9ff
|
fmt: do not insert a newline before returned $vweb.html() (#9063)
|
2021-03-03 10:14:05 +02:00 |
Lukas Neubert
|
8a0b5bad94
|
fmt: keep empty lines in const blocks (#9071)
|
2021-03-03 09:23:11 +02:00 |
spaceface
|
b712af56fd
|
all: bring back `panic(err.msg)` -> `panic(err)` (#9022)
|
2021-03-01 00:18:14 +01:00 |
spaceface
|
d63b7bc35a
|
all: update repo to use the new error handling syntax (#8950)
|
2021-02-28 23:20:21 +03:00 |
Delyan Angelov
|
e354dcefc2
|
fmt: fix support for `mut static x := 42`
|
2021-02-28 19:40:21 +02:00 |
Delyan Angelov
|
4125bfe401
|
all: fix references to time.wait -> time.sleep
|
2021-02-28 18:01:31 +02:00 |
Lukas Neubert
|
5aebd646bb
|
fmt: keep some line comments in multi line arrays (#8969)
|
2021-02-26 09:01:03 +02:00 |
Lukas Neubert
|
2c609411dd
|
fmt: do not write single line or blocks with multi line stmts (#8952)
|
2021-02-26 08:41:24 +02:00 |
Lukas Neubert
|
e4beea4268
|
fmt: restructure comment line break logic inside arrays (#8963)
|
2021-02-25 11:10:54 +01:00 |
Lukas Neubert
|
7e27920cf7
|
fmt: fix inserted empty line before go stmt with anonymus function (#8951)
|
2021-02-25 01:30:04 +01:00 |
Lukas Neubert
|
8e69d3629f
|
parser,fmt: refactor array comment handling to fully rely on the ecmnts field (#8929)
|
2021-02-24 19:33:59 +01:00 |
Lukas Neubert
|
b18d091e18
|
fmt: fix pos of added imports (#8931)
|
2021-02-24 19:33:17 +01:00 |
Lukas Neubert
|
e53476d5e1
|
fmt: do not remove chan type of struct fields (#8948)
|
2021-02-24 20:26:12 +02:00 |
Lukas Neubert
|
51125541c7
|
parser: fix weird minus after comment parse error in arrays (#8912)
|
2021-02-23 09:51:00 +02:00 |
Lukas Neubert
|
18aecde9e5
|
fmt: cleanup comments code (#8901)
|
2021-02-22 18:43:54 +02:00 |
Lukas Neubert
|
7f6c4caa01
|
fmt: fix missing space after single line array pre comments (#8904)
|
2021-02-22 17:53:55 +02:00 |
zakuro
|
f54c1a5cc2
|
all: add strings.Builder.write_string and use write_string instead of write (#8892)
|
2021-02-22 13:18:11 +02:00 |
Lukas Neubert
|
9dc770e29c
|
fmt: do not struggle with comments inside maps (#8897)
|
2021-02-22 13:04:48 +02:00 |
Delyan Angelov
|
c37daba41d
|
ci: fix the remaining obsolete reference to time.sleep and time.usleep
|
2021-02-22 09:12:23 +02:00 |
Lukas Neubert
|
f18adf7759
|
parser,fmt: handle array pre-comments separately from exprs (#8884)
|
2021-02-21 20:18:19 +02:00 |
Lukas Neubert
|
a86bf3254a
|
fmt: keep empty line between if statement and comment (#8846)
|
2021-02-20 16:05:05 +02:00 |
Lukas Neubert
|
329e3938d9
|
fmt: respect user choice of newlines between functions without body (#8838)
|
2021-02-20 16:00:30 +02:00 |
zakuro
|
f381836f9e
|
fmt: sort names in selective imports (#8827)
|
2021-02-20 12:22:09 +01:00 |
Lukas Neubert
|
859d382c6e
|
fmt: remove a few obsolete comments (#8837)
|
2021-02-20 09:54:55 +01:00 |
zakuro
|
0d69d97143
|
fmt: mark imports as used, when types from them are used in struct declarations (#8810)
|
2021-02-18 11:32:45 +02:00 |
zakuro
|
600f6ad2a0
|
fmt: do not prepend mod to selectively imported types from nested module (#8805)
|
2021-02-17 20:42:26 +01:00 |
Delyan Angelov
|
aa3d0ea345
|
vfmt: cleanup spurious printlns, remove obsolete code
|
2021-02-17 14:59:42 +02:00 |
zakuro
|
3341c17202
|
fmt: keep one empty line in struct decl (#8782)
|
2021-02-17 05:45:09 +01:00 |
Lukas Neubert
|
55b69a76a6
|
fmt: minor cleanup of or_expr (#8789)
|
2021-02-17 05:43:29 +01:00 |
zakuro
|
51c286df5a
|
fmt: fix bug that vfmt removes emmbeded struct in struct decl (#8775)
|
2021-02-16 12:45:56 +01:00 |
zakuro
|
6813866141
|
fmt: fix bug of disappearing `pub` in struct decl (#8777)
|
2021-02-16 12:39:50 +01:00 |
Delyan Angelov
|
0bbc5a5c6a
|
fmt: add a small comment about f.line_len
|
2021-02-16 10:22:39 +02:00 |
Lukas Neubert
|
ad20b3806f
|
fmt: fix possible code corruption by unwrapped single line if (#8780)
|
2021-02-16 10:13:48 +02:00 |
zakuro
|
d3bcd5d305
|
fmt: keep single line if in struct init (#8734)
|
2021-02-14 19:22:24 +01:00 |
Uwe Krüger
|
374739b804
|
all: rename `[ref_only]` -> `[heap]` (#8718)
|
2021-02-13 16:52:01 +02:00 |
glebbash
|
aa548f45ea
|
docs: fix functions in array/map example (#8695)
|
2021-02-12 21:10:54 +02:00 |
Lukas Neubert
|
8cb01ba8db
|
fmt: keep comments between and after imports (#8637)
|
2021-02-08 19:48:48 +02:00 |
Nick Treleaven
|
e2ff2a5405
|
parser: deprecate `{var |` struct update (#8618)
|
2021-02-08 17:03:05 +02:00 |
Nick Treleaven
|
9e751f72c4
|
doc, fmt: use `map{key: value}` syntax for map literals (#8623)
|
2021-02-08 16:57:42 +02:00 |
Lukas Neubert
|
473cd1d416
|
fmt: single line ternary return (#8605)
|
2021-02-08 00:28:46 +01:00 |
Lukas Neubert
|
7f4c582f1a
|
fmt: unwrap long infix exprs inside parenthesis if necessary (#8609)
|
2021-02-07 23:10:39 +01:00 |
zakuro
|
9f59b04e86
|
fmt: remove unused selective imports (#8595)
|
2021-02-07 03:58:43 +01:00 |
Lukas Neubert
|
db0fc8fbc9
|
fmt: better function call wrapping inside ternary if branches (#8604)
* fmt: better funcation call wrap in singel line ifs
* tests
* format files
|
2021-02-06 21:46:52 +01:00 |
Uwe Krüger
|
cf230644b6
|
fmt: enable shared return types (#8614)
|
2021-02-06 21:25:06 +01:00 |
Lukas Neubert
|
9ab1d17cbc
|
fmt: keep __global in struct declarations (#8584)
|
2021-02-05 16:46:43 +01:00 |
Uwe Krüger
|
9dcf673216
|
all: make `lock` and `rlock` dead lock free :-) (#8534)
|
2021-02-03 15:16:52 +01:00 |
Lukas Neubert
|
5aaeac79fa
|
ci: fix compilation (#8511)
|
2021-02-02 12:06:54 +02:00 |
Alexander Medvednikov
|
2c4674eb42
|
cgen: obfuscate functions
|
2021-02-02 09:14:41 +01:00 |
Lukas Neubert
|
cf1084105c
|
fmt: allow single line ternary if as function argument (#8486)
|
2021-02-01 20:08:42 +01:00 |
Lukas Neubert
|
d660f2cc6f
|
fmt: insert newline after last HashStmt (#8482)
|
2021-02-01 14:50:41 +01:00 |
Lukas Neubert
|
8755f40430
|
fmt: keep comments after imports (#8483)
|
2021-02-01 14:45:08 +01:00 |
Lukas Neubert
|
43676330ba
|
fmt: keep braces around @ escaped fields in string interpolation (#8488)
|
2021-02-01 11:04:57 +02:00 |
Larpon
|
d25825df57
|
all: support compile time `$env('ENV_VAR')` (#8456)
|
2021-01-31 19:22:42 +02:00 |
Delyan Angelov
|
5746ac4dd4
|
vfmt: remove tracing println for match branches
|
2021-01-31 11:05:49 +02:00 |
div72
|
8c70920695
|
all: add offsetof (#8380)
|
2021-01-30 12:57:09 +01:00 |
Nick Treleaven
|
c0685eeefc
|
parser: add warning for s.$field.name without brackets (#8411)
|
2021-01-30 12:56:10 +01:00 |
Lukas Neubert
|
a044441224
|
fmt: keep {} in string interpolation for chained CallExprs (#8422)
|
2021-01-30 11:58:19 +01:00 |
Lukas Neubert
|
2774db077d
|
fmt: keep user choice for newlines in match branches (#8418)
|
2021-01-30 11:57:57 +01:00 |
zakuro
|
391d62bca5
|
fmt: remove duplicated imports (#8433)
|
2021-01-30 11:04:36 +02:00 |
Lukas Neubert
|
974cac2037
|
fmt: relocate two methods; minor cleanup (#8423)
|
2021-01-29 23:15:26 +02:00 |
Lukas Neubert
|
93acc929f7
|
fmt: keep lines of comments inside an array (#8420)
|
2021-01-29 20:19:14 +02:00 |
zakuro
|
f5242890b8
|
fmt: keep multiline selective import (#8412)
|
2021-01-29 14:48:28 +01:00 |
Lukas Neubert
|
e47c13903b
|
fmt: keep newlines between toplevel stmts (#8383)
|
2021-01-29 12:17:59 +02:00 |
Alexander Medvednikov
|
608a4ccccd
|
fmt: fix a bug with an empty module in consts
|
2021-01-29 00:26:57 +01:00 |
Lukas Neubert
|
75d85403a6
|
fmt: better ternary concat wrapping (#8379)
|
2021-01-28 11:23:48 +01:00 |
Delyan Angelov
|
e5a84719ca
|
all: require calling `optfn() ?` / `optfn() or {...}` for `fn optfn() ? {}`
|
2021-01-26 16:43:17 +02:00 |
Lukas Neubert
|
2007dbc7b5
|
fmt: put the opening brace on a new line again for infix (#8336)
|
2021-01-26 11:19:32 +01:00 |
Lukas Neubert
|
3790bd67e3
|
fmt: minor cleanup of sql_expr (#8340)
|
2021-01-26 10:36:46 +01:00 |
zakuro
|
22847d1ec3
|
fmt: assert (a == b) -> assert a == b (#8351)
|
2021-01-26 10:36:21 +01:00 |