Commit graph

5261 commits

Author SHA1 Message Date
Max Brunsfeld
ac29eab5f9 Remove tests for LookaheadIterator compilation failures
These add noise when running tests. Let's not add unit tests for
compilation failurs.
2023-11-27 10:32:25 -08:00
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
Andre Meyering
0da0da043e
fix(docs): Fix link to contributing guide
The link to the contribution guide on 
https://tree-sitter.github.io/tree-sitter/using-parsers was dead.
2023-11-24 09:59:00 +01:00
Max Brunsfeld
97800e0ec8 Advance wasm store's mem + table offsets when adding a language 2023-11-19 12:26:59 -08:00
Amaan Qureshi
0ff28346be
Merge pull request #2714 from MrPrezident/test_point_range_captures_fix
fix "test_point_range_captures not working"
2023-11-12 21:09:09 -08:00
MrPrezident
3c4957e940 fix "test_point_range_captures not working"
Fix for https://github.com/tree-sitter/py-tree-sitter/issues/105
2023-11-12 20:58:51 -06:00
Amaan Qureshi
6019b7c84c
chore: add FUNDING.json 2023-11-08 00:08:07 -05:00
Max Brunsfeld
d3c84e5bd3
Merge pull request #2751 from stackmystack/doc-correction
doc: fix multi-language program typo
2023-11-06 10:43:08 -08:00
Firas al-Khalil
665da5e230 doc: fix multi-language program typo 2023-11-06 13:18:09 +01: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