Commit graph

3325 commits

Author SHA1 Message Date
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
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
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
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
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
2a94208acf
Merge pull request #822 from tree-sitter/wasm-fixes
Update to the latest Emscripten and fix some WASM issues
2020-12-01 13:10:59 -08:00
Max Brunsfeld
d3f30e298b Use node 12 on travis 2020-12-01 11:04:06 -08:00
Max Brunsfeld
591a2c6249 Remove web binding paths from travis config 2020-12-01 11:04:06 -08:00
Max Brunsfeld
2699c01ab1 Use latest emscripten on CI 2020-12-01 11:04:06 -08:00
Max Brunsfeld
18980b7b99 wasm: Avoid registering uncaught exception/rejection handlers 2020-12-01 11:04:06 -08:00
Max Brunsfeld
751ffd2ee1 Use new emscripten when building with docker 2020-12-01 11:04:06 -08:00
Max Brunsfeld
b118e7d750 Make binding.js syntactically valid
Put the end of the surrounding closure into a separate file, suffix.js.
2020-11-30 15:28:26 -08:00
Max Brunsfeld
a2d6048226 Get the wasm build working w/ latest emscripten 2020-11-30 14:28:27 -08:00
Max Brunsfeld
53949b09fd
Merge pull request #819 from joelspadin/equals-fix
web binding: fix equals()
2020-11-26 15:39:07 -08:00
Joel Spadin
7ef73b2e08 web binding: fix equals()
Node.equals() used to always return true. Now it works.
Also added unit tests for it.
2020-11-26 14:43:27 -06:00
Patrick Thomson
2bf9c0113b
Merge pull request #775 from tree-sitter/query-testy
Define infrastructure for unit testing tags queries.
2020-11-24 15:32:36 -05:00
Max Brunsfeld
329592bdc3
Merge pull request #816 from owlseye/highlight-readme
highlight: Make README snippets compile
2020-11-24 09:51:15 -08:00
Luis Hagenauer
11e7b108f2 highlight: Make README snippets compile 2020-11-24 12:35:38 +01:00
Patrick Thomson
cc8f978b3b inline this lambda 2020-11-23 12:05:32 -05:00
Patrick Thomson
e1da6e554b Remove fanciful nomenclature. 2020-11-23 12:01:08 -05:00
Patrick Thomson
6764b803a0 Allow overlap in specs. 2020-11-23 11:58:07 -05:00
Patrick Thomson
0b4661e401 Really fix the tests. 2020-11-23 11:41:16 -05:00
Patrick Thomson
f3d16f4770 Fix tests. 2020-11-23 11:34:56 -05:00
Patrick Thomson
c1a8985712 Merge remote-tracking branch 'origin/master' into query-testy 2020-11-23 11:10:53 -05:00
Max Brunsfeld
b5d2aa7102
Merge pull request #809 from BonaBeavis/patch-1
Add SPARQL parser to docs
2020-11-20 10:17:09 -08:00
BonaBeavis
f28334a476
Add SPARQL parser to docs 2020-11-20 11:42:33 +01:00
Max Brunsfeld
f65c100522
Merge pull request #804 from kdarkhan/aarch64-compilation-fix
tags: fix compilation on aarch64
2020-11-16 12:11:48 -08:00
Max Brunsfeld
b267f90e64 Update unit tests to reflect python and ruby grammar changes 2020-11-16 10:51:08 -08:00
Darkhan Kubigenov
bf41088bd1 tags: fix compilation on aarch64
Fixes #798
2020-11-13 19:01:57 +06:00
Patrick Thomson
4604b40b72 better name for capture regex 2020-11-10 16:23:39 -05:00
Patrick Thomson
50bccdf5da rename Assertion.expected to expected_capture_name 2020-11-10 16:20:51 -05:00
Patrick Thomson
521297fdfe remove testing file 2020-11-10 16:19:17 -05:00
Patrick Thomson
c9c886d971 Merge remote-tracking branch 'origin/master' into query-testy 2020-11-10 16:16:53 -05:00
Max Brunsfeld
29dbc79402
Merge pull request #785 from alemuller/patch-1
add link to VHDL parser
2020-11-05 09:52:09 -08:00
Max Brunsfeld
d12b874a48
Merge pull request #735 from Vehmloewff/patch-1
Add documentation for `token.immediate`
2020-11-03 11:55:12 -08:00
Max Brunsfeld
5139d81e54
Merge pull request #622 from skovhus/patch-1
TypeScript: Correct SyntaxNode isNamed type
2020-11-03 10:34:27 -08:00
Max Brunsfeld
2d339de5d0
Merge pull request #787 from wingrunr21/add_ts_query_support
Update TS definitions to support the Query API
2020-11-03 10:30:58 -08:00