Commit graph

3590 commits

Author SHA1 Message Date
Max Brunsfeld
ad43b211f4 Allow building the wasm libs with native emscripten instead of docker
And build them on the mac CI as well as the linux CI
2019-05-14 14:02:22 -07:00
Max Brunsfeld
a1ed12f4f4 Start work on web UI command 2019-05-13 21:51:17 -07:00
Max Brunsfeld
7bc7306afb Add a unit test for local variable tracking in syntax highlighting 2019-05-10 14:38:43 -07:00
Max Brunsfeld
cc50f4357b Add missing enumerator in C header for highlighting 2019-05-10 14:38:19 -07:00
Max Brunsfeld
7a511f82ac
Merge pull request #331 from tree-sitter/track-locals-for-highlighting
In syntax-highlighting library, add support for tracking local variables
2019-05-10 12:28:43 -07:00
Max Brunsfeld
958ab27efb Update JS highlighting unit test 2019-05-10 10:32:31 -07:00
Max Brunsfeld
e648dc8616 Rename TSHighlightScope -> TSHighlightValue 2019-05-10 10:06:05 -07:00
Max Brunsfeld
b069e75149 Use branches of fixture repos with the new highlight API 2019-05-10 09:18:39 -07:00
Max Brunsfeld
0d70b485c0 Implement Wasm binding for Tree.getChangedRanges() 2019-05-09 23:52:57 -07:00
Max Brunsfeld
b25af0f05f Fix property state merging bug 2019-05-09 20:34:34 -07:00
Max Brunsfeld
a7d02e7276 Add support for highlight properties that track local variables 2019-05-09 20:34:34 -07:00
Max Brunsfeld
d78ac581f3 Rename scope -> highlight in highlighting property sheets
We need to use the word `scope` for a different purpose: tracking local 
scopes.
2019-05-09 09:42:40 -07:00
Max Brunsfeld
31c2086273 🎨 Refactor TreePropertyCursor 2019-05-09 09:40:15 -07:00
Max Brunsfeld
7de4985a27
Merge pull request #330 from andycraig/update-file-locations-in-docs
Update doc example program file locations
2019-05-08 08:41:39 -07:00
Andrew Craig
bcc823984e Update doc example program file locations
Update doc example program compilation instructions to be consistent
with directory structure.
2019-05-08 21:03:16 +09:00
Max Brunsfeld
9fc058656c In binding_web, use prepublishOnly, not prepublish 2019-05-07 13:24:29 -07:00
Max Brunsfeld
9a82bd9d83 Set up code to publish web bindings to npm 2019-05-07 13:11:04 -07:00
Max Brunsfeld
572f290ec0 Fix highlighting in the presence of node fields 2019-05-07 11:17:34 -07:00
Max Brunsfeld
3fc459a84b Reorganize language bindings
* Move rust binding: lib/binding -> lib/binding_rust
* Move wasm bindinig: lib/web -> lib/binding_web
* Add wasm readme
2019-05-07 10:41:49 -07:00
Max Brunsfeld
a3ceb8f3a5
Add link to Strange Loop talk in main docs page 2019-05-07 09:23:52 -07:00
Max Brunsfeld
a0390218a8 Give playground page a more specific title 2019-05-01 14:11:58 -07:00
Max Brunsfeld
a6a50a6320 Avoid some bloat in wasm build 2019-05-01 12:44:58 -07:00
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