spaceface
|
b9a381f101
|
all: migrate to the new Option (p. 1) (#8924)
|
2021-02-28 22:24:29 +03:00 |
|
Delyan Angelov
|
e354dcefc2
|
fmt: fix support for mut static x := 42
|
2021-02-28 19:40:21 +02:00 |
|
Delyan Angelov
|
bdce35fd9c
|
parser: support static x := 42 in [unsafe] functions too
|
2021-02-28 14:32:46 +02:00 |
|
Delyan Angelov
|
276c08e7f7
|
fmt: support static too
|
2021-02-28 13:08:16 +02:00 |
|
Alexander Medvednikov
|
3a2d696fac
|
time: time.wait() => time.sleep()
|
2021-02-27 20:41:06 +03:00 |
|
Uwe Krüger
|
f67bff1696
|
all: support thread handles and wait() for functions returning optionals (#8990)
|
2021-02-27 10:16:55 +02:00 |
|
zakuro
|
1fd0aceb42
|
parser: imporve generics detection (#8992)
|
2021-02-27 10:07:18 +02:00 |
|
Nick Treleaven
|
4ad95cfeaf
|
checker: check types with $for/$if introspection (#8984)
|
2021-02-26 15:26:50 +01:00 |
|
yuyi
|
524372d49c
|
parser: fix incorrect comments of expr() (#8979)
|
2021-02-26 09:21:58 +02:00 |
|
zakuro
|
89c82ff8e2
|
parser: treat f<mod.Type> as generic call not < operator (#8938)
|
2021-02-26 09:05:00 +02:00 |
|
Nick Treleaven
|
59d4d0ef1d
|
checker: detect unknown type to iterate with $for (#8971)
|
2021-02-26 08:28:19 +02:00 |
|
Delyan Angelov
|
639061be6c
|
examples: fix left/right arrows in examples/term.ui/text_editor.v
|
2021-02-25 21:01:27 +02:00 |
|
Lukas Neubert
|
7e27920cf7
|
fmt: fix inserted empty line before go stmt with anonymus function (#8951)
|
2021-02-25 01:30:04 +01:00 |
|
Nick Treleaven
|
57d1b5b74d
|
checker: show position for variadic/shared/method argument errors (#8939)
|
2021-02-24 19:35:32 +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 |
|
Delyan Angelov
|
1c0eefae38
|
parser/scanner: replace p.peek_tok2/3 with p.peek_token(2/3) (#8946)
|
2021-02-24 21:03:53 +03:00 |
|
yuyi
|
05a08530ff
|
cgen: implement for_stmt of multi_init_vars or multi_assign_vars (#8917)
|
2021-02-24 14:58:45 +02:00 |
|
Lukas Neubert
|
51125541c7
|
parser: fix weird minus after comment parse error in arrays (#8912)
|
2021-02-23 09:51:00 +02:00 |
|
Uwe Krüger
|
5306b2788c
|
all: extend wait() method to array of thread handles (#8840)
|
2021-02-22 15:08:52 +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 |
|
zakuro
|
ac4791045f
|
time: consolidate the different sleep functions into time.wait(Duration) (#8853)
|
2021-02-21 17:05:03 +02:00 |
|
spaceface
|
260f677469
|
term.ui: use the new [flag] enums (#8881)
|
2021-02-21 16:07:49 +02:00 |
|
zakuro
|
7928689ee2
|
parser: set is_public when registering enum type symbols (#8875)
|
2021-02-21 12:13:52 +02:00 |
|
Delyan Angelov
|
5a333b0fdc
|
gen,parser: allow enums as map keys
|
2021-02-20 19:39:25 +02:00 |
|
yuyi
|
c704a49283
|
parser: fix error of $tmpl in anon_fn (fix #8847) (#8849)
|
2021-02-20 18:51:08 +02:00 |
|
yuyi
|
783cee98d9
|
table/parser: minor optimization of anon_fn names (#8851)
|
2021-02-20 15:54:47 +02:00 |
|
yuyi
|
5e1159e4c3
|
checker: change non-const size of fixed array error message (#8850)
|
2021-02-20 12:14:44 +01:00 |
|
kristof de spiegeleer
|
3f3bec45fa
|
examples: add a template example, update the regex examples (#8829)
|
2021-02-19 12:39:15 +02:00 |
|
yuyi
|
a119affeba
|
cgen: check unknown sizeof type (#8815)
|
2021-02-18 09:38:57 +02:00 |
|
Delyan Angelov
|
bf6e9ff95a
|
Revert "parser: make duplicated functions an error (#8792)"
This reverts commit 21bf8fe14e12ac5001ae523ae8d0977bc4a49e92.
|
2021-02-18 09:02:56 +02:00 |
|
zakuro
|
21bf8fe14e
|
parser: make duplicated functions an error (#8792)
|
2021-02-17 20:50:10 +01:00 |
|
Delyan Angelov
|
843de10442
|
parser,gen: fix `arr << map[key] using map_get_and_set_1, leading to double free
|
2021-02-16 16:39:31 +02:00 |
|
zakuro
|
6813866141
|
fmt: fix bug of disappearing pub in struct decl (#8777)
|
2021-02-16 12:39:50 +01:00 |
|
zakuro
|
70a30374b9
|
parser: cleanup fn_decl (#8700)
|
2021-02-15 17:55:08 +02:00 |
|
zakuro
|
d08a0b5a7c
|
parser: check not used expression for all exprs in multi-expr (#8733)
|
2021-02-15 17:41:04 +02:00 |
|
Nick Treleaven
|
629d43caf5
|
checker: warn when using goto outside of unsafe (#8741)
|
2021-02-15 15:48:24 +02:00 |
|
spaceface
|
e3649ec4d3
|
all: implement type_name() for interfaces too (#8767)
|
2021-02-15 15:29:44 +02:00 |
|
Nick Treleaven
|
82650ee813
|
parser: fix parsing attribute after fn prototype with no return type (#8727)
|
2021-02-14 08:05:20 +01:00 |
|
Uwe Krüger
|
374739b804
|
all: rename [ref_only] -> [heap] (#8718)
|
2021-02-13 16:52:01 +02:00 |
|
Delyan Angelov
|
1675b6f3e0
|
ci: fix code-formatting job
|
2021-02-12 15:44:12 +02:00 |
|
Alexander Medvednikov
|
0a03856c83
|
parser: small c2v fixes
|
2021-02-12 09:12:26 +01:00 |
|
yuyi
|
3164e29651
|
all: fix fn_or_for_in mut value (part 1) (#8671)
|
2021-02-12 02:03:11 +02:00 |
|
Nick Treleaven
|
d37fb5641f
|
parser: improve printing of unexpected tokens (#8654)
|
2021-02-09 17:07:30 +02:00 |
|
Swastik Baranwal
|
09cff69919
|
all: allow using aliases as keys in map (#8589)
|
2021-02-08 18:51:05 +01:00 |
|
Lukas Neubert
|
8cb01ba8db
|
fmt: keep comments between and after imports (#8637)
|
2021-02-08 19:48:48 +02:00 |
|
Lukas Neubert
|
cb1f63f765
|
parser: replace eat_line_end_comments() with configurable eat_comments() (#8636)
|
2021-02-08 18:16:02 +02:00 |
|
Swastik Baranwal
|
e2ff26a066
|
cgen: fix gen of .sort method for > operator and improve grammar of error (#8615)
|
2021-02-08 17:19:54 +02:00 |
|
Nick Treleaven
|
e2ff2a5405
|
parser: deprecate {var | struct update (#8618)
|
2021-02-08 17:03:05 +02:00 |
|