Commit graph

3744 commits

Author SHA1 Message Date
Max Brunsfeld
8a1316d0eb
Merge pull request #1390 from tree-sitter/mj-docs
Add links to ocaml bindings, hcl parser, hack parser
2021-09-16 15:56:19 -07:00
Martin Jambon
8ec38a9b64 Add HCL (Terraform) and Hack to the list of supported languages 2021-09-16 13:34:59 -07:00
Martin Jambon
b675587132 Add link to OCaml bindings to list and sort list alphabetically. 2021-09-16 13:19:05 -07:00
Max Brunsfeld
80a2526843
Merge pull request #1385 from tree-sitter/feat/rust-query-match-id
feat(rust): Add an id() method for QueryMatch
2021-09-14 09:35:59 -07:00
Andrew Hlynskyi
ae12ff81b5 feat(rust): Add an id() method for QueryMatch
Refs #1372
2021-09-14 19:08:29 +03:00
Max Brunsfeld
22a5cfbe10 Assign ids to query matches only when the matches are returned
Refs #1372
2021-09-13 12:39:48 -07:00
Max Brunsfeld
6c66b5ee29
Merge pull request #1383 from tree-sitter/feat/debug-build
feat(cli): add a flag to compile a parser in debug mode with -O0 C/C++ compiler flag
2021-09-13 11:39:13 -07:00
Andrew Hlynskyi
62d79b80e1 feat(cli): add a flag to compile a parser in debug mode with -O0 C/C++ compiler flag 2021-09-13 13:48:02 +03:00
Max Brunsfeld
5c2ebf093b Include memmove symbol in wasm build 2021-09-10 15:21:55 -07:00
Max Brunsfeld
4241f1453a
Merge pull request #1381 from hershen/typo
Fix typo in ts_tree_cursor_current_field_id documentation
2021-09-10 13:10:10 -07:00
Alon Hershenhorn
b239583510 Fix typo in API documentation
Fix small typo in ts_tree_cursor_current_field_id documentation.
2021-09-10 12:28:23 -07:00
Max Brunsfeld
4fa5ab8a52
Merge pull request #1348 from tlaplus-community/testfile-separator
Add support for arbitrary suffixes in test file headers and separators
2021-09-07 22:58:05 -07:00
Max Brunsfeld
4d64c2b939 Put emscripten-version file in cli directory
This lets the CLI crate build without relying on sibling directories.
2021-09-03 13:57:45 -07:00
Max Brunsfeld
b938486ebe In CLI, get tree-sitter binding version from CLI's Cargo.toml 2021-09-03 13:54:47 -07:00
Max Brunsfeld
23b28f6f36 Fix 'include!' error when building the CLI outside of the repo 2021-09-03 13:45:13 -07:00
Max Brunsfeld
1eb4d8efe6 Bump tree-sitter dep version in tags and highlight crate 2021-09-03 13:31:26 -07:00
Max Brunsfeld
e22b42c9e6 Bump lib tree-sitter dependency versions in loader crate 2021-09-03 13:29:03 -07:00
Max Brunsfeld
aea35461b1
Merge pull request #1373 from tree-sitter/fix/1318
fix(lib): fix segfault on ts_query_new with incompatible grammar version
2021-09-03 13:21:41 -07:00
Andrew Hlynskyi
52e6c900c3 fix(lib): fix segfault on ts_query_new with incompatible grammar version, close #1318 2021-09-03 14:24:18 +03:00
Max Brunsfeld
0e26fbe5e6
Merge pull request #1367 from jrieken/moduleInit
Allow to pass Module object to init-function
2021-08-30 09:32:43 -07:00
Max Brunsfeld
eeda44d837
Merge pull request #1368 from jrieken/dtsTweaks
Fixes and additions to tree-sitter-web.d.ts
2021-08-30 09:17:53 -07:00
Johannes Rieken
3e9874df7f Don't confuse terser with object spread 2021-08-30 14:56:28 +02:00
Johannes Rieken
e7a8e73bbf fixes and additions to tree-sitter-web.d.ts 2021-08-30 14:47:47 +02:00
Johannes Rieken
12d727fd49 mix init options in the Module-global 2021-08-30 14:16:41 +02:00
Max Brunsfeld
8fa875b1a4 Fix possible infinite loop when running syntax highlighting tests
Fixes #1347
2021-08-29 15:04:23 -07:00
Max Brunsfeld
81c724cea0
Merge pull request #1364 from rydesun/add-dot-parser
Add Graphviz DOT parser
2021-08-29 11:48:36 -07:00
rydesun
c7f118ce55 Add Graphviz DOT parser 2021-08-29 20:21:17 +08:00
Andrew Hlynskyi
53f094f05e
Merge pull request #1362 from ahlinc/fix/891
chore(docs): Fix getting started example, closes #891
2021-08-27 11:09:58 +03:00
Andrew Hlynskyi
c1849098f5 chore(docs): Fix getting started example, closes #891 2021-08-27 11:07:49 +03:00
Andrew Hlynskyi
92007dc9b5
Merge pull request #1354 from beyonddream/master
chore(docs): Fix broken links of research papers
2021-08-25 01:32:50 +03:00
beyonddream
3c59284df5 Fix broken links of research papers. 2021-08-22 04:07:49 -07:00
Max Brunsfeld
c30ac18900
Merge pull request #1353 from ahlinc/chore/add-license-files-to-npm-packages
сhore: Add license files to npm packages
2021-08-21 19:45:29 -07:00
Andrew Hlynskyi
f15700c6bd chore(web): Add the LICENSE file to the web-tree-sitter npm package 2021-08-22 03:13:46 +03:00
Andrew Hlynskyi
88601000a2 chore(cli): Add the LICENSE file to the tree-sitter-cli npm package 2021-08-22 03:13:46 +03:00
Max Brunsfeld
5844d76deb
Merge pull request #1346 from FnControlOption/unicode-property-escape-aliases
Handle aliases in unicode property escapes in regexes
2021-08-19 14:29:44 -07:00
Andrew Helwer
03b6a00bb8 Support for suffixes in test file separators
Some languages use the non-suffixed separators in their syntax
Fixes #982
2021-08-19 09:42:46 -04:00
FnControlOption
e030434ca7 Handle aliases in unicode property escapes in regexes 2021-08-18 22:22:46 -07:00
Max Brunsfeld
82d4da553e
Merge pull request #1337 from narpfel/remove-unnecessary-borrows
Remove unnecessary borrows
2021-08-14 09:36:06 -07:00
Paul Gey
a533e4d7bb Remove unnecessary borrows
This produces an `unused_must_use` warning on nightly:
https://github.com/rust-lang/rust/pull/86426
2021-08-14 15:44:24 +02:00
Max Brunsfeld
c6dd5da5e6
Merge pull request #1329 from narpfel/improve-performance
Improve performance of `tree-sitter generate`
2021-08-11 16:08:23 -07:00
Paul Gey
f34c13d2a7 Update smallbitvec dependency 2021-08-08 21:45:43 +02:00
Paul Gey
965e3c9e5e Generator::add_parse_table: Store entries in hash map
This avoids a quadratic behaviour due to repeatedly using `find` on a
growing `Vec`.
2021-08-08 21:45:43 +02:00
Paul Gey
cf69a2c94c Use IndexMap and FxHash for some hot hash maps 2021-08-08 21:45:43 +02:00
Andrew Hlynskyi
fb6bd2cad3
Merge pull request #1321 from ahlinc/fix/generate-path-arg
fix(cli): Remove tree-sitter grammar ./... call limitation
2021-08-06 02:43:21 +03:00
Andrew Hlynskyi
533073cdb5 fix(cli): Remove tree-sitter grammar ./... call limitation 2021-08-06 02:11:35 +03:00
Kolja Lampe
c21bec3716 Always print where the playground is running 2021-08-06 01:58:24 +03:00
Kolja Lampe
99243ddaf2 Correct quiet description for playground 2021-08-06 01:58:24 +03:00
Andrew Hlynskyi
bc13d6e504
Merge pull request #1319 from ahlinc/fix/dead-code-in-logger
fix(cli): allow dead code in Logger; fixes CI failure
2021-08-06 01:08:58 +03:00
Andrew Hlynskyi
d8ac8f5d16 fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
Max Brunsfeld
c7998d93d0
Merge pull request #1278 from CyberShadow/pull-20210719-104342
feat(cli): Make "test" output more readable
2021-07-29 15:06:18 -07:00