Commit graph

3769 commits

Author SHA1 Message Date
Max Brunsfeld
4ff2172857
Merge pull request #1414 from theHamsta/add-my-parsers
Add tree-sitter-cuda, tree-sitter-glsl, tree-sitter-commonlisp
2021-09-27 11:46:17 -07:00
Stephan Seitz
2f484a2bcb Add tree-sitter-cuda, tree-sitter-glsl, tree-sitter-commonlisp 2021-09-26 12:21:38 +02:00
Max Brunsfeld
929c89e781
Merge pull request #1238 from m-novikov/m-novikov-add-parsers
Add SQL parser
2021-09-24 09:04:36 -07:00
Max Brunsfeld
e7dcd2b7c4
Merge branch 'master' into m-novikov-add-parsers 2021-09-24 09:04:30 -07:00
Max Brunsfeld
561dfe3a2d
Merge pull request #1394 from tree-sitter/fix/query-predicates-with-alternations
fix(cli): Panic on queries containing alternation with predicates
2021-09-24 08:56:23 -07:00
Max Brunsfeld
2bee7c9b75 Update get_column docs
Fixes #1405
2021-09-22 13:53:42 -07:00
Max Brunsfeld
0e3a2780cd Avoid dynamic regex construction when parsing test files 2021-09-21 21:35:14 -07:00
Andrew Hlynskyi
6d2a9983d1
Merge pull request #1400 from tree-sitter/chore/rename-web-ui-stuff
chore(cli): Rename all internal web_ui stuff to playground
2021-09-22 04:49:48 +03:00
Andrew Hlynskyi
16470bc0b1 chore(cli): Rename all internal web_ui stuff to playground 2021-09-22 04:28:08 +03:00
Max Brunsfeld
f65bc89bc8
Merge pull request #1399 from tree-sitter/fix/playground-opening
fix(cli): Fix playground opening in a browser, regression in #1304
2021-09-21 16:32:30 -07:00
Andrew Hlynskyi
2383b7354c
Merge pull request #1258 from tree-sitter/dependabot/bundler/docs/addressable-2.8.0
chore(deps): bump addressable from 2.5.2 to 2.8.0 in /docs
2021-09-22 02:18:34 +03:00
dependabot[bot]
0801cd3870 chore(deps): bump addressable from 2.5.2 to 2.8.0 in /docs
Bumps [addressable](https://github.com/sporkmonger/addressable) from 2.5.2 to 2.8.0.
- [Release notes](https://github.com/sporkmonger/addressable/releases)
- [Changelog](https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sporkmonger/addressable/compare/addressable-2.5.2...addressable-2.8.0)

---
updated-dependencies:
- dependency-name: addressable
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-22 02:00:03 +03:00
Andrew Hlynskyi
2abd6bc318 fix(cli): Fix playground opening in a browser, regression in #1304 2021-09-22 01:38:52 +03:00
Andrew Hlynskyi
28a121b532 chore(docs): Fix misprints 2021-09-22 00:24:36 +03:00
Max Brunsfeld
51aa169387
Merge pull request #1398 from tree-sitter/feat/cli/improve-query-output
feat(cli/query): Improve and unify query sub command output
2021-09-21 13:46:26 -07:00
Max Brunsfeld
74152feef0
Merge pull request #1397 from tree-sitter/fix/mark-set-cancellation-self-as-mutable
binding(rust): Mark set_cancellation_flag self as mutable
2021-09-21 13:38:03 -07:00
Andrew Hlynskyi
e2de738026 cli(query): Improve and unify query subcommand output 2021-09-21 23:10:00 +03:00
Andrew Hlynskyi
d973527964 binding(rust): Mark set_cancellation_flag self as mutable 2021-09-21 23:03:50 +03:00
Andrew Hlynskyi
79b2bf1c30 fix(wasm): Fix predicates in alternations, resolves #1392 2021-09-21 21:13:41 +03:00
Andrew Hlynskyi
b324d0802a fix(cli): Panic on queries containing alternation with predicates
`QuearyMatch::satisfies_text_predicates()` was changed to pass
captures that don't relate to a checked predicate. This allows
predicates in inner alternations for queries.

Refs #1392
2021-09-21 19:51:30 +03:00
Max Brunsfeld
a63c09375f
Merge pull request #1391 from mehmetoguzderin/patch-1
Add WGSL WebGPU Shading Language
2021-09-17 08:55:58 -07:00
Mehmet Oguz Derin
eca777f501
Add WGSL WebGPU Shading Language
This PR adds WebGPU Shading Language to the list of available grammars, the linked repository's grammar is periodically automatically extracted from the WGSL specification itself, which is actually extracted every single time where the specification gets a modification in itself to check the validity of both the syntax and the examples. Thank you very much for developing and maintaining tree-sitter, fantastic project!
2021-09-17 18:54:14 +03:00
Max Brunsfeld
bd08fddc11
Merge pull request #1388 from jiyee/master
Add Objective-C language parser
2021-09-17 08:14:58 -07:00
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
Jiyee Sheng
7e5781637c Add Objective-C language parser 2021-09-16 12:30:40 +08: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