tree-sitter/docs
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
..
_layouts Add a playground to the docs site 2019-04-26 13:36:28 -07:00
assets Precompute tree edits in playground script 2019-09-23 17:01:35 -07:00
.gitignore Add table of contents to docs pages 2018-02-26 17:42:42 -08:00
_config.yml Start fleshing out docs site 2018-06-10 14:44:33 -07:00
Gemfile Add table of contents to docs pages 2018-02-26 17:42:42 -08:00
Gemfile.lock Bump rubyzip from 1.2.1 to 2.0.0 in /docs (#459) 2019-10-04 14:48:53 -07:00
index.md docs: add Vue parser 2019-10-04 20:38:01 +08:00
section-2-using-parsers.md lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00
section-3-creating-parsers.md docs: Start adding info about field names 2019-09-05 15:43:10 -07:00
section-4-implementation.md Update docs after Rust conversion 2019-02-05 11:34:01 -08:00
section-5-contributing.md lib: remove utf8proc dependency (#436) 2019-10-14 11:18:39 -07:00
section-6-playground.html Fix playground HTML, tweak playground colors 2019-09-18 18:03:15 -07:00