Commit graph

6118 commits

Author SHA1 Message Date
Max Brunsfeld
17abb583b2
Merge pull request #896 from hvithrafn/load-bytes
Modify Language.load to accept bytes directly
2021-01-25 09:23:01 -08:00
hvithrafn
c994adbf61 Modify Language.load to accept bytes directly 2021-01-25 02:06:47 -07:00
Wojciech Kordalski
8e89b8cdb8
Fix getting node by field name or ID. 2021-01-22 18:23:50 +01:00
Max Brunsfeld
da5dcba86e
Merge pull request #882 from hvithrafn/wasm-bindgen-compat
Add index.js wrapper for wasm-bindgen compatibility
2021-01-21 21:16:19 -08:00
hvithrafn
6557564b92 Add a non-default export for Parser 2021-01-21 20:37:46 -07:00
Max Brunsfeld
d6ad7484a6 Fix install-rust step in GH CI 2021-01-11 16:59:05 -08:00
Max Brunsfeld
03ff52a31a Noop to run CI again and test caching 2021-01-11 16:38:19 -08:00
Max Brunsfeld
94eeb0662f Remove emscripten caching again 2021-01-11 16:13:43 -08:00
Max Brunsfeld
4bedff9c75 Include emscripten version in cache key 2021-01-11 16:03:54 -08:00
Max Brunsfeld
ffef8f53f6 Publish assets to GH releases from CI on tagged builds 2021-01-11 15:46:17 -08:00
Max Brunsfeld
2f5a6598fa Try again with caching for emscripten 2021-01-11 15:02:50 -08:00
Max Brunsfeld
c1660d201d Don't cache emscripten stuff for now 2021-01-11 14:37:42 -08:00
Max Brunsfeld
f94d67b42a Use a publisehd action for setting up emscripten on CI 2021-01-11 14:21:52 -08:00
marceloll
057d299297 Allow comments only at line start 2021-01-08 13:28:40 -03:00
marceloll
0f5563c536 Add test for ; comments 2021-01-08 13:28:40 -03:00
marceloll
9500aff052 Use ; as comment in tests segxp section 2021-01-08 13:28:40 -03:00
Max Brunsfeld
1dc127e5da 0.18.0 2021-01-07 17:07:29 -08:00
Nils Helmig
a98359e4b6
Adding sourcepawn parser 2021-01-07 00:25:36 +01:00
Max Brunsfeld
ea8a2dcb8e Add macOS build to GH actions CI 2021-01-05 12:21:55 -08:00
Max Brunsfeld
98135774a8
Merge pull request #863 from yijunyu/master
Add --xml option to save the parsed code into XML
2021-01-05 07:43:13 -08:00
Yijun Yu
9e08712773 Add --xml option to save the parsed code into XML, using node.start_byte() and node.end_byte() 2021-01-04 22:07:38 +00:00
Linda_pp
bb47ef0d78
Fix typo in document 2021-01-01 00:17:22 +09:00
Max Brunsfeld
115bf3fd44
Merge pull request #858 from agriffis/fix-gcc-11
Fix build with GCC 11
2020-12-22 20:38:52 -08:00
Aron Griffis
e13581b041 Fix build with GCC 11
It seems redundant to array_init() when the structure is zeroed already
in the static assignment. But probably the fact that this code juggles
between TSTreeCursor and TreeCursor, without using a union, leaves the
compiler unable to tell that it's been initialized.

Fixes https://github.com/tree-sitter/tree-sitter/issues/853
2020-12-22 15:19:35 -05:00
Max Brunsfeld
d5eb5969f9
Merge pull request #856 from 0xADD1E/master
Update CC for additional target support
2020-12-20 20:13:33 -08:00
Max Brunsfeld
391fc8c340 Update unit tests to expect ruby grammar change 2020-12-20 19:34:45 -08:00
Kája Lišková
915834c113 Update CC to version with better target support
This is just a minimal set of changes to dependencies.
macOS aarch64 support was only introduced in `cc` version 1.0.58, so this now allows tree-sitter to build natively on M1 computers
2020-12-20 16:09:17 -06:00
Berkus Decker
0ceb2af38e
Fix typo 2020-12-17 02:41:25 +02:00
Max Brunsfeld
d6a3e4c98c
Merge pull request #847 from hponde/patch-1
Update binding_web/README.md releases link
2020-12-14 12:28:29 -08:00
Leandro Ostera
da58afb0b0
Merge branch 'master' into patch-1 2020-12-13 00:28:54 +01:00
Max Brunsfeld
d6cfe3ed1d web: 0.18 2020-12-11 15:57:32 -08:00
Henrique Oliveira Pinto
f025f9aa71
Point directly to releases/latest 2020-12-11 17:58:47 -05:00
Henrique Oliveira Pinto
4336d9c8c5
Update binding_web/README.md releases link
The previous link pointed to a specific version and it made me think that the project had no releases for a year!
2020-12-11 17:57:15 -05:00
Max Brunsfeld
0f492e4254 Include ts_tree_copy in wasm build
Fixes #846
2020-12-11 13:48:22 -08:00
BonaBeavis
f9583eb43a
Add Turtle parser 2020-12-09 15:07:02 +01:00
Max Brunsfeld
ee1159d009
Merge pull request #836 from jimhester/patch-1
Add link to R tree sitter grammar
2020-12-07 13:02:15 -08:00
Jim Hester
e5ef2f2aa3
Add link to R tree sitter grammar 2020-12-07 09:05:03 -05:00
Leandro Ostera
7891f2f1e2
Add Erlang and S-exp to available parser list 2020-12-05 17:44:19 +01:00
Max Brunsfeld
5008700735 wasm: Look for both loadWebAssemblyModule and loadSideModule
See https://github.com/emscripten-core/emscripten/pull/12969
2020-12-04 14:36:32 -08:00
Max Brunsfeld
bd5a9a813c
Merge pull request #442 from ikatyang/feat/snapshot-testing
feat(cli): support snapshot testing with `--update` flag
2020-12-03 12:15:18 -08:00
Max Brunsfeld
94c61de353 Update JS error recovery test to reflect grammar change 2020-12-03 10:09:58 -08:00
Max Brunsfeld
96f259d8c5 Run rustfmt 2020-12-03 09:48:20 -08:00
Max Brunsfeld
026231e93d Merge branch 'master' into HEAD 2020-12-03 09:44:33 -08:00
Max Brunsfeld
9dd35e7853 Build wasm binding, run wasm tests on GH actions 2020-12-03 09:39:12 -08:00
Max Brunsfeld
36cb83aa05 Update JS error recovery test to reflect grammar change 2020-12-02 16:12:01 -08:00
Max Brunsfeld
6c8a928253 Avoid always specifying a --target flag in test script 2020-12-02 15:35:28 -08:00
Max Brunsfeld
b661050a61 Simplify setup for enabling/disabling allocation recording in the C lib 2020-12-02 15:35:13 -08:00
Max Brunsfeld
00d25e8298 Use caching in GH actions 2020-12-01 17:56:01 -08:00
Max Brunsfeld
59c71733a7 Merge branch 'master' into actions-ci 2020-12-01 17:39:48 -08:00
Max Brunsfeld
abef4a7417 Use stable rust, remove custom rustc flags 2020-12-01 17:38:22 -08:00