Commit graph

4604 commits

Author SHA1 Message Date
Max Brunsfeld
6fd7a1e44e Return informative error when load_language fails 2023-11-26 12:15:05 -08:00
Max Brunsfeld
e9289d3b30 Fix error when wrong language name is passed to load_language 2023-11-24 20:25:28 -08:00
Max Brunsfeld
bd0796d11d Remove mips targets from CI workflow 2023-11-24 20:06:36 -08:00
Max Brunsfeld
b59716600a Add a test that loads multiple languages in a wasm store 2023-11-24 20:03:54 -08:00
Max Brunsfeld
359317f876 Determine sizes of static wasm arrays from subsequent static pointers 2023-11-24 11:32:24 -08:00
Max Brunsfeld
97800e0ec8 Advance wasm store's mem + table offsets when adding a language 2023-11-19 12:26:59 -08:00
Max Brunsfeld
360059eca1 Avoid a '../' #include in test scanner 2023-11-04 12:26:00 -07:00
Max Brunsfeld
d56d1a32ac Fix test grammar loading in unit test 2023-11-04 12:26:00 -07:00
Max Brunsfeld
098969db08 Fix windows compile errors in wasm.c 2023-11-04 12:26:00 -07:00
Max Brunsfeld
adb0e6958e Only enable wasm feature on CI for supported architectures 2023-10-31 17:13:50 -07:00
Max Brunsfeld
473b3c8208 Add a CLI feature flag for wasm runtime support 2023-10-31 16:56:11 -07:00
Max Brunsfeld
3380e0eed7 Fix hang when printing dot graphs from the CLI 2023-10-31 15:59:37 -07:00
Max Brunsfeld
b26eff13e2 Remove code duplication in wasm module instantiation, add stdlib symbols 2023-10-31 15:58:56 -07:00
Max Brunsfeld
0743edd162 Include two more std::string functions in wasm stdlib 2023-10-27 21:54:23 +01:00
Max Brunsfeld
2c0b52eec6 Add a comment about how wasmtime-c-api is linked by cargo 2023-10-27 21:53:31 +01:00
Max Brunsfeld
7715e2477a Use Box::leak when passing wasm engine to C code 2023-10-27 21:32:28 +01:00
Max Brunsfeld
b23ef57259 Update wasmtime headers, use latest wasmtime C APIs 2023-10-27 21:30:13 +01:00
Max Brunsfeld
ae2f60d907 Fix loading of wasm languages with fields but no aliases 2023-10-27 21:29:23 +01:00
Max Brunsfeld
091652721e Use upstream wasmtime 2023-10-27 12:43:16 +01:00
Max Brunsfeld
81a1a1733d Fix C compile warnings in wasm.c 2023-10-27 12:16:05 +01:00
Max Brunsfeld
f4e2f68f14 Merge branch 'master' into wasm-language 2023-10-27 12:11:43 +01:00
Max Brunsfeld
ddfbbb00a1
Merge pull request #2725 from daumantas-kavolis-sensmetry/fix/cursor-previous-sibling
Fix `goto_previous_sibling` with padded first children
2023-10-27 11:53:16 +02:00
Daumantas Kavolis
143ed959c9
Use single if block 2023-10-25 10:47:55 +03:00
Daumantas Kavolis
e26e23fd0e
Fix formatting 2023-10-25 10:24:35 +03:00
Daumantas Kavolis
e265929f90
Fix goto_previous_sibling with padded first children 2023-10-25 10:19:03 +03:00
Andrew Hlynskyi
7c0cee70f5
Merge pull request #2713 from tree-sitter/workaround-2712
cicd: disable failed `linux-riscv64gc` target
2023-10-16 23:38:35 +03:00
Andrew Hlynskyi
5e62120050 chore: fix local fixture test for C language 2023-10-16 21:45:40 +03:00
Andrew Hlynskyi
a91a6cc615 cicd: disable failed linux-riscv64gc target
Related issue #2712
2023-10-16 16:13:40 +03:00
Andrew Hlynskyi
20924fa4cd
Merge pull request #2687 from ahlinc/offset-pos-opt
chore(rust): improve perf for position funcs
2023-10-05 20:46:04 +03:00
Andrew Hlynskyi
a5a7564818 chore(rust): add error reporting for position funcs 2023-10-05 17:24:01 +03:00
Andrew Hlynskyi
c63f1680ad chore(rust): improve perf for position funcs 2023-10-05 17:24:01 +03:00
Andrew Hlynskyi
abdff7c1d2
Merge pull request #2690 from ahlinc/cicd-fragile-tests
cicd: add skips for fragile corpus tests
2023-10-05 17:23:31 +03:00
Andrew Hlynskyi
d95836eb35 cicd: add en extra check for non matchable skips 2023-10-05 14:39:36 +03:00
Andrew Hlynskyi
82ddb3ddcc cicd: add skips for fragile corpus tests 2023-10-05 07:59:35 +03:00
Andrew Hlynskyi
6bbb50bef8
Merge pull request #2525 from ahlinc/use-fixture-masters
chore: switch `fetch-fixtures.cmd` to all master branches
2023-09-21 12:32:50 +03:00
Andrew Hlynskyi
dd52cafdd9 chore: switch fetch-fixtures.cmd to all master branches 2023-09-21 11:28:22 +03:00
Amaan Qureshi
4fe1717441
Merge pull request #2637 from amaanq/lookup-perf
perf: cache the current language configuration to lookup for later use
2023-09-21 03:10:05 -04:00
Amaan Qureshi
cc66895343
perf: cache the current language configuration to lookup later on 2023-09-21 00:52:50 -04:00
Amaan Qureshi
b3e8fe9cfc
Merge pull request #2636 from amaanq/js-update
fix: update javascript tests and use cpp/javascript master for fixtures
2023-09-20 23:57:32 -04:00
Amaan Qureshi
3a8d4311be
Merge pull request #1914 from dstoc/master
Add towlower to wasm exports
2023-09-20 12:24:06 -04:00
Amaan Qureshi
ef9cabd4b5
fix: update javascript tests and use cpp/javascript master for fixtures 2023-09-20 11:31:53 -04:00
dstoc
8d0997d5b4 Add towlower to wasm exports
tree-sitter/tree-sitter#1906
2023-09-20 10:41:54 +10:00
Amaan Qureshi
e0f54611ad
Merge pull request #2632 from amaanq/wasm-exports
feat: add some more commonly used functions to exports.json
2023-09-19 10:11:52 -04:00
Amaan Qureshi
6d4aac723f
feat: add some more commonly used functions to exports.json 2023-09-19 09:29:13 -04:00
Andrew Hlynskyi
46af27796a
Merge pull request #2617 from ahlinc/segfault-node-state
fix(lib): segmentation fault in `ts_node_parse_state`
2023-09-12 03:15:12 +03:00
Andrew Hlynskyi
46965770fc fix(lib): segmentation fault in ts_node_parse_state 2023-09-12 02:35:22 +03:00
Andrew Hlynskyi
524bf7e2c6
Merge pull request #2607 from ahlinc/fix-zero-deallocs
fix: `dealloc` calls on zero pointers
2023-09-03 09:45:52 +03:00
Andrew Hlynskyi
796c5a2ccf
Merge pull request #2606 from ahlinc/ffi-rm-c-enum-pfx
chore(ffi): remove enum name prefixes from all C enum values
2023-09-03 09:45:38 +03:00
Andrew Hlynskyi
9cc1daafca chore(ffi): remove enum name prefixes from all C enum values 2023-09-03 07:38:27 +03:00
Andrew Hlynskyi
7f7084c2cb chore(test): panic on zero pointer deallocs for alloc tracked scopes 2023-09-03 07:12:11 +03:00