Matt
ae3b60bd29
Include many new parsers in a unified list
2023-01-17 09:14:57 -05:00
Andrew Hlynskyi
eb970a83a1
Merge pull request #2031 from tree-sitter/strip-cli-binary
...
cli: produce smaller release binary by stripping debug info
2023-01-15 22:24:21 +02:00
Andrew Hlynskyi
ced103b519
ci: rustup install rustfmt and clippy
2023-01-15 19:18:51 +02:00
Andrew Hlynskyi
7a56f08154
ci: bump setup-emsdk action version to @v12
2023-01-15 19:18:51 +02:00
Andrew Hlynskyi
5c1ca5adb0
cli: produce smaller release binary by stripping debug info
2023-01-15 04:32:18 +02:00
Andrew Hlynskyi
ca38c32d36
Exclude huge generated files from git diff output
2023-01-14 08:58:25 +02:00
Andrew Hlynskyi
f627a97d24
loader: use portable way of path joining
2023-01-11 04:12:13 +02:00
Andrew Hlynskyi
2949b210b9
Merge pull request #2020 from tree-sitter/tree-sitter-debug-in-test
...
Add setting TREE_SITTER_DEBUG in the test sub command
2023-01-10 12:17:33 +02:00
Andrew Hlynskyi
c7d431b53e
Add setting TREE_SITTER_DEBUG in the test subcommand
...
Were asked in #1218
2023-01-10 10:47:24 +02:00
Andrew Hlynskyi
9ac55f79d1
Update Makefile VERSION to 0.20.9 from lib/Cargo.toml
...
Closes #1158
Closes #1608
2023-01-08 04:39:46 +02:00
Andrew Hlynskyi
0d3fd603e1
Merge pull request #2013 from tree-sitter/close-1336
...
Closes #1336
2023-01-06 11:09:54 +02:00
Andrew Hlynskyi
108d0ecede
loader: add TREE_SITTER_LIBDIR; cli: add --libdir to tree-sitter generate
...
Closes #1336
2023-01-06 10:28:47 +02:00
Andrew Hlynskyi
5088781ef9
cli: add -b, --build flags for tree-sitter generate
2023-01-06 10:28:47 +02:00
Andrew Hlynskyi
ad45f5cd2c
Remove unused no-minimize arg for the generate command
2023-01-06 10:28:47 +02:00
Andrew Hlynskyi
8a888a69fe
Merge pull request #2015 from tree-sitter/update-ci-action-versions
...
Update CI action versions
2023-01-06 10:28:19 +02:00
Andrew Hlynskyi
e733a07a5c
Update CI action versions
2023-01-06 10:05:27 +02:00
Andrew Hlynskyi
896de71e4f
Merge pull request #2014 from tree-sitter/fix-wasm-tests
...
Fix wasm tests and bump Emscripten version to 3.1.29
2023-01-06 09:46:31 +02:00
Andrew Hlynskyi
88fe1d00c4
Bump Emscripten version to 3.1.29
2023-01-06 08:32:31 +02:00
Andrew Hlynskyi
19bd5868eb
Fix wasm tests
2023-01-06 08:32:26 +02:00
Andrew Hlynskyi
9737fcb558
Merge pull request #1612 from tlaplus-community/update-creating-parser-docs
2023-01-03 02:57:50 +02:00
Andrew Helwer
278ff01e71
Added additional documentation details
...
* External scanners and infinite loops
* Terminal keywords in externals array
* Using error sentinel external token
* Good practice to erase state variables in deserialize func
* Emphasize external scanner is called first
2023-01-03 02:48:55 +02:00
Andrew Helwer
87a0517f3c
Various updates to Creating Parsers docs
...
* Documented test separator suffixes
* Documented partial precedences field
* Added external scanning to conflicting tokens rules
* Added earliest starting position to conflicting tokens rules
* Added note about lexical precedence vs. parse precedence
* Added note about tree-sitter calling external scanner with all
tokens marked valid during error recovery
2023-01-03 02:48:48 +02:00
Andrew Hlynskyi
b1024a1493
cli: Fix build.rs in case of the current branch ref was packed
...
Support SHA lookup in .git/packed-refs
2023-01-03 00:44:01 +02:00
Andrew Hlynskyi
3e8d029ab3
Merge pull request #653 from ahelwer:patch-1
2023-01-02 02:31:24 +02:00
Andrew Helwer
dddbc2d4f7
Added working commands for Windows users
...
Windows users are likely to be using either Windows Terminal (which uses PowerShell) or PowerShell directly.
2023-01-02 02:31:06 +02:00
Andrew Hlynskyi
c669e5ee15
Fix permanent rebuild triggering in a git worktree due to wrong git branch file path
2022-12-11 19:16:20 +02:00
Andrew Hlynskyi
870fb8772f
Merge pull request #1953 from tree-sitter/fix/playground-port-bind-racing
...
fix(cli): Racing on playground webserver port binding
2022-11-16 06:28:43 +02:00
Max Brunsfeld
8883d43bee
Merge pull request #1941 from mliszcz/master
...
Fix test output formatting for rules starting with M/U
2022-11-15 17:13:39 -08:00
Max Brunsfeld
b31f9e6e90
Merge pull request #1913 from J3RN/browser-fixes
...
Allow web-tree-sitter to work with Emscripten 3
2022-11-15 17:03:31 -08:00
Max Brunsfeld
1f36bf091e
Upgrade to emscripten 3.1.25
2022-11-15 16:39:17 -08:00
Jonathan Arnett
e4fc6653ee
Add __cxa_atexit to exports
2022-11-15 16:39:17 -08:00
Jonathan Arnett
56e9753b5f
Add memset to exports
2022-11-15 16:39:17 -08:00
Jonathan Arnett
a8988339c3
Add 'stringToUTF16' and 'AsciiToString' to exported method
2022-11-15 16:39:17 -08:00
Jonathan Arnett
813216be9a
Configure compiled WASM grammars to not catch rejections
2022-11-15 16:39:17 -08:00
Max Brunsfeld
37e0e8a7ab
Merge pull request #1918 from alanz/add-erlang-complete
...
Add Erlang to list of Available Parsers
2022-11-15 16:27:39 -08:00
mliszcz
7bf2484d81
Fix test output formatting for rules starting with M/U
...
Previously the rule names could not begin with an uppercase M or U
because the test output formatter assumed that they represent special
tokens: MISSING or UEXPECTED.
Fixes #1940 .
2022-11-15 20:20:44 +01:00
Max Brunsfeld
36b5b6c89e
Merge pull request #1952 from tree-sitter/tree-included-ranges
...
Allow retrieving a tree's list of included ranges, fix some included range bugs
2022-11-14 16:54:58 -08:00
Max Brunsfeld
8e3dc7cd7a
Add tests that randomly edit files with disjoint included ranges
2022-11-14 16:04:37 -08:00
Max Brunsfeld
efd22e452b
Fix suppression of empty tokens during error handling at included range boundaries
2022-11-14 12:20:39 -08:00
Max Brunsfeld
d07f864815
Fix parse error when reusing a node at the end of an included range
2022-11-11 16:34:57 -08:00
Andrew Hlynskyi
a33e9141a8
fix(cli): Racing on playground webserver port binding
2022-11-09 04:56:52 +02:00
Max Brunsfeld
618146260e
Add doc comments for tree included ranges getter
2022-11-08 17:47:57 -08:00
Max Brunsfeld
da6e24de17
Fix adjustment of trees' included ranges on edits
...
Previously, when an included range started or ended *inside* of
an edit, that range did not get updated correctly.
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2022-11-07 16:52:19 -08:00
Max Brunsfeld
f0177f216e
Use library-configured allocator to free intermediate included ranges
2022-11-07 10:48:32 -08:00
Max Brunsfeld
1848d0bc36
Add tree included ranges getter
...
Co-authored-by: Nathan Sobo <nathan@zed.dev>
2022-11-04 15:24:07 -07:00
Max Brunsfeld
fb5fbdd787
Merge pull request #1936 from J3RN/add-rust-scanner-note
...
Add note about including an external scanner in Rust crate
2022-10-31 14:49:15 -07:00
Max Brunsfeld
757c032455
Merge pull request #1938 from panicinc/merge/parse-cancel-pointer-crash
...
Resolving a crash when freeing a null pointer when cancelling parses
2022-10-31 13:00:20 -07:00
Logan Collins
5337a678fa
Resolving a potential crash freeing a null pointer when cancelling parses.
2022-10-31 11:35:52 -07:00
Jonathan Arnett
245e3b0092
Add note about including an external scanner in Rust crate
2022-10-30 23:24:50 -04:00
Max Brunsfeld
439a4804db
Merge pull request #1921 from gdamore/patch-1
...
Add D grammar - it is quite complete for D 2.100.
2022-10-20 09:24:08 -07:00