Commit graph

4813 commits

Author SHA1 Message Date
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
Phil Freeman
eb549a89ad fix: possible rollover of nanoseconds in clock.h 2022-12-14 09:43:58 -08: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
35ce2e47ec web: Remove conditional logic for older emscripten versions 2022-11-15 17:27:01 -08:00
Max Brunsfeld
51720beeb0 Start work on a --wasm flag for the test subcommand 2022-11-15 17:14:33 -08:00
Max Brunsfeld
08ccf5babf Disable most wasmtime features 2022-11-15 17:14:33 -08:00
Max Brunsfeld
9cbeaf27da Get wasm.c compiling when wasm feature is disabled 2022-11-15 17:14:33 -08:00
Max Brunsfeld
7eb3e504db Use my fork of wasmtime temporarily 2022-11-15 17:14:33 -08:00
Max Brunsfeld
98ccfcffb0 Provide minimal C/C++ std library to wasm external scanners 2022-11-15 17:14:33 -08:00
Max Brunsfeld
7dc81303f6 Get wasm store working with parser with stateless external scanners 2022-11-15 17:14:33 -08:00
Max Brunsfeld
ef1e3fb133 Use an unchecked function call for running the lex functions 2022-11-15 17:14:33 -08:00
Max Brunsfeld
3869878530 Use unchecked host functions for lexer callbacks 2022-11-15 17:14:33 -08:00
Max Brunsfeld
d47713ee4a Integrate WASM compilation into the CLI's Loader 2022-11-15 17:14:33 -08:00
Max Brunsfeld
042e6f9d57 Restucture wasm module, return a normal TSLanguage from load_language 2022-11-15 17:14:33 -08:00
Max Brunsfeld
3f1a7f9cd4 Start work on ability to load wasm languages from native lib, via wasmtime 2022-11-15 17:14:33 -08: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
Garrett D'Amore
db846931c6
Add D grammar - it is quite complete for D 2.100. 2022-10-20 08:33:43 -07:00
Alan Zimmerman
54ace9fe27 Add Erlang to list of Available Parsers
Switching from under-development

  https://github.com/AbstractMachinesLab/tree-sitter-erlang

to

  https://github.com/WhatsApp/tree-sitter-erlang/

which is based originally on it.
2022-10-20 09:50:14 +01:00
rnkaufman
cabdcfb41d
Merge pull request #1900 from gbprod/add-twig-parser
Add twig parser in documentation
2022-10-07 16:54:36 -07:00
Gilles Roustan
346572a348 Add twig parser in documentation 2022-10-04 10:08:56 +02:00
Max Brunsfeld
d62adbe3a9
Merge pull request #1881 from mattmassicotte/fix/array-integer-sizing
Explicit integer sizes for array capacity
2022-09-21 20:17:28 -07:00
Matt
98b8226c70
Remove unnecessary cast 2022-09-21 20:17:30 -04:00
Matt
8751fa0853
Add explicit casting for array capacities 2022-09-21 15:52:44 -04:00
Max Brunsfeld
70cfc55e58
Merge pull request #1879 from mattmassicotte/fix/sizes
change integer type in ts_parser__set_cached_token
2022-09-21 10:25:38 -07:00
Matt
af6611e530
matching integer types 2022-09-21 08:50:01 -04:00
Max Brunsfeld
67d13cf50b Fix integer size of subtree's child count field
Fixes tree-sitter/tree-sitter-cpp#175
2022-09-08 11:02:42 -07:00
Max Brunsfeld
d1d8193d2f
Merge pull request #1858 from mattmassicotte/swift-docs-update
Update ref to swift parser
2022-09-06 14:09:02 -07:00