Commit graph

2468 commits

Author SHA1 Message Date
Max Brunsfeld
7d1aa10f73 Update generated binding.cc to use newer NAN APIs 2019-04-30 17:23:36 -07:00
Max Brunsfeld
67fa9bdf4d
Use https README docs site link 2019-04-30 13:00:27 -07:00
Max Brunsfeld
73e4db41b0 Render syntax tree efficiently in docs playground 2019-04-30 11:55:30 -07:00
Max Brunsfeld
3425b6e1c2 Add wasm binding for TreeCursor 2019-04-29 13:20:09 -07:00
Max Brunsfeld
22a47b0205
Merge pull request #323 from chrismwendt/fix-total-memory
Increase memory limit for language wasm files (continued)
2019-04-28 17:30:04 -07:00
Chris Wendt
cff9c16ccc Increase memory limit for language wasm files (continued) 2019-04-28 14:08:40 -07:00
Max Brunsfeld
f3ecafe13b Fix inclusion of libc++ in wasm build 2019-04-27 18:06:34 -07:00
Max Brunsfeld
73e1512555 Fix playground script URL in docs site 2019-04-27 17:54:14 -07:00
Max Brunsfeld
8315a6277b Increase memory limit for language wasm files 2019-04-27 17:54:00 -07:00
Max Brunsfeld
e388311fb5
Merge pull request #321 from tree-sitter/wasm
Add a Tree-sitter Wasm binding and a Wasm-based web playground
2019-04-27 17:50:41 -07:00
Max Brunsfeld
4febbc43f6 In docs playground, scroll tree whenever cursor moves 2019-04-27 17:32:07 -07:00
Max Brunsfeld
b4c4dc48ff Minify JS build with terser 2019-04-26 19:52:01 -07:00
Max Brunsfeld
48743dda44 Get remaining wasm tests passing 2019-04-26 17:28:15 -07:00
Max Brunsfeld
66e006105c Build and test wasm on CI 2019-04-26 14:38:13 -07:00
Max Brunsfeld
58e1a0fee7 In node range queries, treat the end coordinate as exclusive 2019-04-26 13:36:28 -07:00
Max Brunsfeld
e39d69dfa7 Add a playground to the docs site 2019-04-26 13:36:28 -07:00
Max Brunsfeld
1fc0525940 Start work on a WASM binding 2019-04-25 17:27:39 -07:00
Max Brunsfeld
82ccc0e56d
Merge pull request #319 from ervinoro/master
Allow hex characters in unicode code points
2019-04-09 12:13:57 -07:00
Ervin Oro
e5584f82d3 Add test to verify regex unicode codepoints work 2019-04-09 21:55:49 +03:00
Ervin Oro
8c845f29e0 Allow hex characters in unicode code points 2019-04-09 20:37:36 +03:00
Max Brunsfeld
bc5e71bcc2 Fix handling of zero-width external tokens at beginning of document
Fixes #316
2019-04-08 15:01:52 -07:00
Max Brunsfeld
701d63dab7 Add --edit flag to parse command 2019-04-08 09:21:03 -07:00
Max Brunsfeld
2bd14a8463 Build parsers with debug symbols 2019-04-05 13:04:37 -07:00
Max Brunsfeld
a1eee4a193 Catch missing precedence values in JS
Fixes #305
2019-04-05 13:04:12 -07:00
Max Brunsfeld
df76aef067 CLI: In lex function, merge branches with the same body 2019-04-04 16:02:50 -07:00
Max Brunsfeld
f30485f9f4 Fix accidentally-removed functions in api.h 2019-03-29 23:05:02 -07:00
Max Brunsfeld
6490b1e4f2 Fix non-deterministic conflict message order 2019-03-29 17:36:19 -07:00
Max Brunsfeld
00968db983 Add documentation to api.h
Fixes #166
2019-03-29 16:50:05 -07:00
Max Brunsfeld
aa5f73357d 0.15.1 2019-03-29 13:58:00 -07:00
Max Brunsfeld
a133afe9ac Clean up ParseItem::cmp 2019-03-29 12:49:51 -07:00
Max Brunsfeld
9bdac0e693 CLI: Account for field names when comparing parse items 2019-03-29 12:13:24 -07:00
Max Brunsfeld
1e64985f1f 0.15.0 2019-03-29 09:14:13 -07:00
Max Brunsfeld
09b902f6a0 cli: require node-types.json in generated index.js files 2019-03-29 09:07:32 -07:00
Max Brunsfeld
77636e8fe6
Merge pull request #271 from tree-sitter/node-fields
Add an API for associating field names with child nodes
2019-03-27 17:44:48 -07:00
Max Brunsfeld
eb96dd6ddb node types: Preserve all supertypes in field type lists 2019-03-27 16:32:02 -07:00
Max Brunsfeld
451478c620 Include tokens in node-types.json 2019-03-26 16:57:55 -07:00
Max Brunsfeld
e9afdd72b4 node-types: Fix incorrect named value for subclasses 2019-03-26 15:27:07 -07:00
Max Brunsfeld
af09e65efc Move node types code to its own module 2019-03-26 14:42:32 -07:00
Max Brunsfeld
6c65d74810 Restructure node-types.json output 2019-03-26 13:43:10 -07:00
Max Brunsfeld
5035e194ff Merge branch 'master' into node-fields 2019-03-26 11:58:21 -07:00
Max Brunsfeld
b79bd8693b Start work on handling node supertypes 2019-03-26 11:51:02 -07:00
Max Brunsfeld
d209f93bac
Merge pull request #310 from marijnh/swap-comments
Swap two incorrectly placed comments
2019-03-26 09:26:25 -07:00
Marijn Haverbeke
fe5aa46d8d Swap two incorrectly placed comments 2019-03-26 16:53:35 +01:00
Max Brunsfeld
62d712c6c7
Merge pull request #309 from justinwoo/patch-1
fix example snippet in creating parsers docs
2019-03-25 08:53:02 -07:00
Justin Woo
6f804fd2e2 fix example snippet in creating parsers docs 2019-03-24 14:37:43 +02:00
Max Brunsfeld
d51cd86a3a Update available bindings section of docs 2019-03-22 14:20:35 -07:00
Max Brunsfeld
82358d3f2f
Merge pull request #307 from tree-sitter/pointer-sized-cancellation-flag
Make the cancellation flag a size_t, not a uint32_t
2019-03-22 12:30:39 -07:00
Max Brunsfeld
5a59f19b69 Use explicit syntax for functions with no parameters 2019-03-21 16:06:06 -07:00
Max Brunsfeld
2e5d3d3770
Merge pull request #308 from tree-sitter/real-time-clock
Use CLOCK_MONOTONIC on platforms that support it
2019-03-21 16:04:38 -07:00
Max Brunsfeld
74d154c706 Use CLOCK_MONOTONIC on platforms that support it
This way, timeouts will apply even if the current process
is starved for CPU.
2019-03-21 14:13:42 -07:00