Commit Graph

11469 Commits (b1bb1d361a94bb344cbdde45820dc49423353519)

Author SHA1 Message Date
Delyan Angelov b1bb1d361a
ci: vfmt parser.v 2021-10-28 10:51:55 +03:00
Delyan Angelov 1b6cccaf6d
parser,checker: allow a goto label right after return 2021-10-28 10:40:31 +03:00
ChAoS_UnItY 8cd01e0eac
cgen: fix error caused by fixed size array init syntax with variable it (#12314) 2021-10-28 02:20:49 +03:00
Delyan Angelov 8fd66994c7
ci: comment out the `main` body in draw.js.v for now 2021-10-28 02:18:38 +03:00
playX cfecb62299
js: DOM API. Part 1 (#12296) 2021-10-27 23:18:09 +03:00
Delyan Angelov 0ff23eeb74
ci: fix failing assign_expr_channel_push.out 2021-10-27 22:54:41 +03:00
Delyan Angelov f79bc8619a
scanner: remove unused .line_ends field 2021-10-27 22:37:00 +03:00
Larpon bc3827ae15
toml: improve array parsing (#12322) 2021-10-27 20:26:33 +03:00
Lucas Jenß 43fbc68f1e
checker: disallow `<-` (channel push) on right-hand side of assignment (fix #12309) (#12321) 2021-10-27 17:53:50 +03:00
Delyan Angelov 159a9c3070
markused: fix `-skip-unused` on programs with generic methods (fix #12306) 2021-10-27 17:22:26 +03:00
Larpon 462d097bf5
toml: small clarification on utf8_max const (#12320) 2021-10-27 16:41:22 +03:00
yuyi 943a807d30
parser: implement generics method with auto multi generic types (#12312) 2021-10-27 15:41:13 +03:00
Darío Hereñú e5c759eb91
docs: fix typos (line 22, 26, 28, 34, 50, 107) (#12310) 2021-10-27 15:31:18 +03:00
Larpon d53bb54c0a
toml: implement checks for UTF-8 validity (#12313) 2021-10-27 15:28:46 +03:00
Wertzui123 ea6d2d53db
parser: disallow `for mut in range` (fix #12234) (#12277) 2021-10-27 14:55:36 +03:00
Larpon 6eaacd3391
toml: improve checker documentation (#12315) 2021-10-27 14:31:29 +03:00
Lucas Jenß d7fd4a563b
parser: remove commented out debug statement (#12316) 2021-10-27 14:30:22 +03:00
Larpon 1b9eef74aa
toml: improve inline-table parsing (#12307) 2021-10-26 17:00:41 +03:00
Larpon c526752419
toml: remove unused enum (#12304) 2021-10-26 16:58:58 +03:00
Larpon 9a3967bd7d
toml: improve comment support (#12305) 2021-10-26 16:58:05 +03:00
Larpon 52df19ef61
toml: check for invalid placement of underscores around exponent (#12303) 2021-10-26 13:49:25 +03:00
Andreas Schoeller f14dabc6bd
math.big: add a new greatest-common-divisor-algo for big.Integer, also add a benchmark for it (#12261) 2021-10-26 11:10:13 +03:00
yuyi f62b2dcfa7
table: fix generic method with multi generic types (#12297) 2021-10-26 11:00:27 +03:00
Delyan Angelov 508f29c101
docs: document the purpose of the `[params]` trailing struct tag 2021-10-26 10:53:14 +03:00
Miccah 655b5c563a
net.http: use `[params]` for Config structs (#12299) 2021-10-26 10:45:27 +03:00
Delyan Angelov 06796a6119
ci,toml: add the new float/trailing-us-exp.toml to the ignored skip list for now 2021-10-26 10:42:40 +03:00
Delyan Angelov 5b325b99e8
docs: give a concrete example of bounds access check, and error propagation with `x := arr[idx] ?` 2021-10-25 17:19:24 +03:00
yuyi ac99007cab
table: fix generic sumtype instantiations (#12288) 2021-10-25 15:22:41 +03:00
kahsa 77a1e3dedb
gg: improve system_font_path on linux (#12290) 2021-10-25 15:16:29 +03:00
Amund Tenstad 18da724a9f
examples: prevent a 180 turn in snek (#12286) 2021-10-25 10:57:05 +03:00
Bakul Shah cc2847f6ff
builtin: fix compilation with `-gc boehm` on some FreeBSD versions (#12289) 2021-10-25 10:24:08 +03:00
Delyan Angelov 45c1c1ab41
ci: fix import_symbol_private_err.vv and its .out file (time.since is no longer private) 2021-10-24 22:06:32 +03:00
Delyan Angelov 49ebba535e
time: implement `pub fn since(t Time) Duration` 2021-10-24 21:36:28 +03:00
Delyan Angelov bb71089b70
os: make the os_test.v functions more robust on windows (normalise the returned paths before comparing them) 2021-10-24 19:54:00 +03:00
Delyan Angelov e99b699ac6
os: make os.mkdir_all more robust (honor / on windows too), add a test for it 2021-10-24 19:16:46 +03:00
Delyan Angelov f34daf9ff4
os: add os.walk_with_context/3 and a test for it 2021-10-24 19:12:14 +03:00
Delyan Angelov e34046a0e1
os: remove `pub` from impl_walk_ext 2021-10-24 18:48:54 +03:00
Delyan Angelov d1c4b470bc
os: make os.ls('') return an error, make os.walk_ext more memory efficient on deep hierarchies, add tests for os.walk_ext 2021-10-24 18:44:13 +03:00
Delyan Angelov d9c6c9a7df
http: cleanup download_file, remove unimplemented download_file_with_progress 2021-10-24 17:19:44 +03:00
playX 2eae4cf63e
js: fix optional error propagation (#12283) 2021-10-24 15:56:44 +03:00
Delyan Angelov c340906280
cgen: cleanup vinit_string_literals, _vcleanup and reload_so declarations 2021-10-24 15:29:42 +03:00
zakuro 242b99340d
vfmt: fix bug where duplicated comma is placed before comment in array init (#12281) 2021-10-24 12:05:34 +03:00
penguindark 47a2301139
regex: add OR error, if sourounded by char classes, and a test (#12278) 2021-10-24 11:54:51 +03:00
Delyan Angelov e45cd02029
mysql: always use `#include <mysql.h>`, rely on pkgconfig to get the correct include folder 2021-10-23 21:22:10 +03:00
Delyan Angelov 008d15dcb5
builder,pref: add support for `-no-builtin` (useful for writing Linux kernel modules) 2021-10-23 12:53:53 +03:00
Delyan Angelov aa22751d26
vlib: remove unused `glm` module (#12274) 2021-10-22 22:23:14 +03:00
playX 864d6eae6b
js: codegen & vlib fixes, replace the Game of Life CLI example (#12272) 2021-10-22 22:03:19 +03:00
Larpon 8a4756819a
toml: disallow unclosed arrays (#12273) 2021-10-22 20:30:29 +03:00
Larpon 506924b01c
android: hide printf hijack for android logging behind define (#12269) 2021-10-22 19:59:25 +03:00
Larpon 8273c0582b
toml: check for illegal characters, fix all related skipped tests (#12270) 2021-10-22 19:57:32 +03:00