Commit graph

135 commits

Author SHA1 Message Date
Max Brunsfeld
35cc10768b Add BLM banner 2020-06-01 09:32:59 -07:00
Mohamed Al-Fahim
67cd6b3d97
Grammar fix (#631) 2020-05-30 10:57:44 -07:00
Max Brunsfeld
e8e80b1cf1 docs: Use new predicate syntax in highlighting query examples 2020-05-19 16:26:04 -07:00
Max Brunsfeld
61814b468d Remove build-lib script, recommend make 2020-05-12 16:28:26 -07:00
Max Brunsfeld
f38f5d1d22 Tweak readmes 2020-05-12 16:16:48 -07:00
Max Brunsfeld
f6f96f3503 Document the new query syntax 2020-05-11 14:24:00 -07:00
Max Brunsfeld
a04d688d38
docs: Add a link to tree-sitter-wasm
Closes #605
2020-05-06 09:34:23 -07:00
Danny Mösch
4c0fa297d8
Fix typos in docu section about highlighting (#591) 2020-04-07 13:27:30 -07:00
Ronan Cherrueau ⚓
b65582797a
Fix the Getting Started example in docs (#588)
Running the first example of the Getting Started failed with:

  main: Assertion `strcmp(ts_node_type(root_node), "value") == 0' failed.

The cause is the json parser that renamed the entry rule from `value` to
`document` in commit tree-sitter/tree-sitter-json@1e4abcc. This commit
update the example in docs to fix the assert.
2020-04-03 11:35:31 -07:00
Alexander Eyers-Taylor
5670dd6705
Add QL to the playground (#558) 2020-03-03 13:46:20 -08:00
Max Brunsfeld
f2e9e3b3f2 docs: Link to semantic dir instead of codegen PR 2020-03-02 09:38:25 -08:00
dependabot[bot]
8c95c7648b
build(deps): bump nokogiri from 1.8.2 to 1.10.8 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.8.2 to 1.10.8.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.8.2...v1.10.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-02-25 09:57:14 +00:00
Max Brunsfeld
3cd05a3d0c Link to Semantic in node-types docs 2020-02-24 11:21:05 -08:00
Max Brunsfeld
f1e4104d47 Document supertypes and the node-types file
References #542
References #524
Closes #393
2020-02-24 11:12:42 -08:00
Max Brunsfeld
8d26da7b03 Add highlight subcommand to docs section w/ all subcommands 2020-02-21 13:11:40 -08:00
Max Brunsfeld
a76a232485 Add unit testing docs 2020-02-21 12:58:41 -08:00
Max Brunsfeld
709ddfebe9 docs: Add explanation of syntax highlighting configuration for CLI 2020-02-21 11:39:27 -08:00
Max Brunsfeld
1ce42a04a7 Add docs about injection query properties 2020-02-20 15:34:35 -08:00
Max Brunsfeld
17071267e3 docs: Start work on docs for injection queries 2020-02-20 14:38:37 -08:00
Max Brunsfeld
cf80f094ac docs: Expand local variable highlighting section 2020-02-20 09:35:46 -08:00
Max Brunsfeld
92f060303c docs: First draft of highlight query section, start local var section 2020-02-20 09:35:46 -08:00
Max Brunsfeld
2a8860542c Add intro to syntax highlighting docs 2020-02-20 09:35:46 -08:00
Max Brunsfeld
579b8e8d28 Rename files to make room for syntax highlighting section 2020-02-20 09:35:46 -08:00
Max Brunsfeld
ca73cba5f0 Make underline-on-hover work for spans within links
Refs #535
2020-02-12 16:06:50 -08:00
Max Brunsfeld
1f53b7aba8
Merge pull request #536 from kramred/docs/external_link_icon_CC0
Modify styles to show icon for external links
2020-02-12 11:59:29 -08:00
Mark Schmitz
23b88b6ac4 Modify styles to show icon for external links
Icon is CC0, copyright by https://github.com/kramred
2020-02-12 19:40:43 +00:00
Mark Schmitz
3dafb373a8 Add hyperlink to github repo below img of tree
in sidebar, as suggested in https://github.com/tree-sitter/tree-sitter/issues/508
2020-02-12 16:20:03 +00:00
Max Brunsfeld
70e2a2c025 Add PHP parser to web playground 2020-01-17 13:30:02 -08:00
Max Brunsfeld
82a8b15714 docs: Add C# parser to the playground 2019-12-02 14:00:26 -08:00
Max Brunsfeld
7ee65222d3 docs: Consider C# to be fairly complete 2019-12-02 13:54:24 -08:00
Mark Schmitz
3fbe0be6e2
Fix small typo in docs 2019-12-02 13:05:41 +00:00
akiyosi
1742f32fcc Fix link to contributing docs 2019-11-28 22:07:32 +09:00
Max Brunsfeld
079aa26a99 Link to docs.rs from docs site 2019-11-08 14:31:24 -08:00
Max Brunsfeld
a506ceec3f Link to contributing docs from installation section of docs
Refs #478
2019-11-04 12:50:43 -08:00
Max Brunsfeld
5a3a672e30 Expand on query docs 2019-10-30 10:26:10 -07:00
Max Brunsfeld
d5dc4bbcaa Fix some errors in new query docs 2019-10-28 17:32:10 -07:00
Max Brunsfeld
6146c39b0a Add information about queries on the docs site 2019-10-28 17:19:57 -07:00
Matthew Krupcale
5ae89f5133 docs: fix lookahead type (#462)
The `TSLexer` struct uses signed integer `int32_t` for the `lookahead` Unicode code point.

 * docs/section-3-creating-parsers.md: fix `lookahead` type
2019-10-14 12:08:24 -07:00
Matthew Krupcale
ee9a3c0ebb lib: remove utf8proc dependency (#436)
* Remove dependency on utf8proc

This removes the only external dependency on utf8proc for UTF-8 decoding. It does so by implementing its own UTF-8 decoder. This decoder is both faster and has a simpler API.

 * .gitmodules: remove utf8proc submodule
 * docs/section-2-using-parsers.md: remove requirement for utf8proc submodule
 * docs/section-6-contributing.md: likewise
 * lib/Cargo.toml: remove utf8proc subdirectory package include
 * lib/README.md: remove utf8proc subdirectory description
 * lib/binding_rust/build.rs: remove utf8proc compiler include directory
 * lib/src/lexer.c: remove utf8proc dependencies and types
 * lib/src/lib.c: remove utf8proc dependency
 * lib/src/unicode.h: define types for Unicode decoders
 * lib/src/utf16.{c,h}: implement more readable UTF-16 decoder
 * lib/src/utf8.{c,h}: implement fast UTF-8 decoder
 * lib/utf8proc: remove utf8proc submodule directory
 * script/build-lib: remove utf8proc compiler include directory
 * script/build-wasm: likewise

* Optimize ts_lexer__get_lookahead.

Try to favor non-failure code path and assign lookahead values directly to lexer

 * lib/src/lexer.c: optimize for non-failure code path

* Fix some compiler errors

 * lib/src/lexer.c: cast from signed to unsigned for decode_next result
 * lib/src/utf16.c: fix non-constant initializers for older compilers

* Remove some missed remnants of utf8proc

 * docs/section-2-using-parsers.md: only two include paths necessary now
 * lib/src/lib.c: no need to define UTF8PROC_STATIC

* Use ICU's utf8 and utf16 decoding routines

* Remove unnecessary casts when calling icu macros

* Check buffer length before attempting to decode a unicode character

* Use new unicode function when parsing Queries

Co-Authored-By: Matthew Krupcale <mkrupcale@matthewkrupcale.com>

* Mark libicu files as vendored for GitHub's stats
2019-10-14 11:18:39 -07:00
Rob Rix
20bb99249b Fix a typo in the docs. (#457) 2019-10-04 14:49:19 -07:00
dependabot[bot]
10c6144e83 Bump rubyzip from 1.2.1 to 2.0.0 in /docs (#459)
Bumps [rubyzip](https://github.com/rubyzip/rubyzip) from 1.2.1 to 2.0.0.
- [Release notes](https://github.com/rubyzip/rubyzip/releases)
- [Changelog](https://github.com/rubyzip/rubyzip/blob/master/Changelog.md)
- [Commits](https://github.com/rubyzip/rubyzip/compare/v1.2.1...v2.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-10-04 14:48:53 -07:00
Ika
825a816ee7 docs: add Vue parser 2019-10-04 20:38:01 +08:00
Ika
d54fe98334 docs: add Markdown parser 2019-09-30 20:10:37 +08:00
Max Brunsfeld
9ce3a53427 Precompute tree edits in playground script 2019-09-23 17:01:35 -07:00
Max Brunsfeld
10fb9b0e20 Fix playground HTML, tweak playground colors 2019-09-18 18:03:15 -07:00
Max Brunsfeld
a1fec71b19 Tweak QueryCursor to allow iterating either matches or captures
For syntax highlighting, we want to iterate over all of the captures in 
order, and don't care about grouping the captures by pattern.
2019-09-13 15:19:04 -07:00
Max Brunsfeld
f08767c482 Add tree query editor to web UI and playground 2019-09-12 14:07:17 -07:00
Max Brunsfeld
0528ad5f58 playground: Persist state across reloads 2019-09-12 08:49:19 -07:00
Max Brunsfeld
4151a428ec docs: Add link to WIP swift grammar 2019-09-06 09:18:30 -07:00
Max Brunsfeld
f9a3998029 docs: Start adding info about field names 2019-09-05 15:43:10 -07:00