Commit graph

796 commits

Author SHA1 Message Date
Andrew Helwer
0dc1bd806f Fixed some test failures due to CRLF line endings 2021-09-24 22:42:38 -04:00
Max Brunsfeld
0e3a2780cd Avoid dynamic regex construction when parsing test files 2021-09-21 21:35:14 -07:00
Andrew Hlynskyi
16470bc0b1 chore(cli): Rename all internal web_ui stuff to playground 2021-09-22 04:28:08 +03:00
Andrew Hlynskyi
2abd6bc318 fix(cli): Fix playground opening in a browser, regression in #1304 2021-09-22 01:38:52 +03:00
Andrew Hlynskyi
28a121b532 chore(docs): Fix misprints 2021-09-22 00:24:36 +03:00
Andrew Hlynskyi
e2de738026 cli(query): Improve and unify query subcommand output 2021-09-21 23:10:00 +03:00
Andrew Hlynskyi
62d79b80e1 feat(cli): add a flag to compile a parser in debug mode with -O0 C/C++ compiler flag 2021-09-13 13:48:02 +03:00
Max Brunsfeld
4fa5ab8a52
Merge pull request #1348 from tlaplus-community/testfile-separator
Add support for arbitrary suffixes in test file headers and separators
2021-09-07 22:58:05 -07:00
Max Brunsfeld
4d64c2b939 Put emscripten-version file in cli directory
This lets the CLI crate build without relying on sibling directories.
2021-09-03 13:57:45 -07:00
Max Brunsfeld
b938486ebe In CLI, get tree-sitter binding version from CLI's Cargo.toml 2021-09-03 13:54:47 -07:00
Max Brunsfeld
23b28f6f36 Fix 'include!' error when building the CLI outside of the repo 2021-09-03 13:45:13 -07:00
Max Brunsfeld
e22b42c9e6 Bump lib tree-sitter dependency versions in loader crate 2021-09-03 13:29:03 -07:00
Andrew Hlynskyi
52e6c900c3 fix(lib): fix segfault on ts_query_new with incompatible grammar version, close #1318 2021-09-03 14:24:18 +03:00
Max Brunsfeld
8fa875b1a4 Fix possible infinite loop when running syntax highlighting tests
Fixes #1347
2021-08-29 15:04:23 -07:00
Andrew Hlynskyi
88601000a2 chore(cli): Add the LICENSE file to the tree-sitter-cli npm package 2021-08-22 03:13:46 +03:00
Andrew Helwer
03b6a00bb8 Support for suffixes in test file separators
Some languages use the non-suffixed separators in their syntax
Fixes #982
2021-08-19 09:42:46 -04:00
FnControlOption
e030434ca7 Handle aliases in unicode property escapes in regexes 2021-08-18 22:22:46 -07:00
Paul Gey
a533e4d7bb Remove unnecessary borrows
This produces an `unused_must_use` warning on nightly:
https://github.com/rust-lang/rust/pull/86426
2021-08-14 15:44:24 +02:00
Max Brunsfeld
c6dd5da5e6
Merge pull request #1329 from narpfel/improve-performance
Improve performance of `tree-sitter generate`
2021-08-11 16:08:23 -07:00
Paul Gey
f34c13d2a7 Update smallbitvec dependency 2021-08-08 21:45:43 +02:00
Paul Gey
965e3c9e5e Generator::add_parse_table: Store entries in hash map
This avoids a quadratic behaviour due to repeatedly using `find` on a
growing `Vec`.
2021-08-08 21:45:43 +02:00
Paul Gey
cf69a2c94c Use IndexMap and FxHash for some hot hash maps 2021-08-08 21:45:43 +02:00
Andrew Hlynskyi
533073cdb5 fix(cli): Remove tree-sitter grammar ./... call limitation 2021-08-06 02:11:35 +03:00
Kolja Lampe
c21bec3716 Always print where the playground is running 2021-08-06 01:58:24 +03:00
Kolja Lampe
99243ddaf2 Correct quiet description for playground 2021-08-06 01:58:24 +03:00
Andrew Hlynskyi
bc13d6e504
Merge pull request #1319 from ahlinc/fix/dead-code-in-logger
fix(cli): allow dead code in Logger; fixes CI failure
2021-08-06 01:08:58 +03:00
Andrew Hlynskyi
d8ac8f5d16 fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
Max Brunsfeld
c7998d93d0
Merge pull request #1278 from CyberShadow/pull-20210719-104342
feat(cli): Make "test" output more readable
2021-07-29 15:06:18 -07:00
Max Brunsfeld
59cd1c3962
Merge pull request #1235 from ahlinc/feat/cli-help-messages
feat(cli): Add a lot of help messages for CLI options
2021-07-19 11:32:32 -07:00
Vladimir Panteleev
505bc5e1af
feat(cli): Make "test" output more readable 2021-07-19 10:56:21 +00:00
Max Brunsfeld
a017b9cea3
Merge pull request #1270 from ahlinc/fix/debug-log-row-count-from-0
fix(parser): count rows in the debug log from 0
2021-07-18 08:16:09 -07:00
Max Brunsfeld
906a62ef0c
Merge pull request #1187 from ahlinc/feat/internal-build-compiler-flag
feat(cli/loader): Add TREE_SITTER_INTERNAL_BUILD C/C++ compiler definition
2021-07-15 22:42:30 -07:00
Max Brunsfeld
64e6c11566
Merge pull request #1234 from ahlinc/fix/imrove-config-loading-err-msgs
fix(cli): Improve error messages on config.json loading, closes #1227
2021-07-15 20:37:40 -07:00
Andrew Hlynskyi
13108baef7 fix(cli): Improve error messages on config.json loading, closes #1227 2021-07-16 05:43:39 +03:00
Andrew Hlynskyi
7f538170bf fix(parser): count rows in the debug log from 0 2021-07-15 11:47:14 +03:00
Max Brunsfeld
9cb732859f Update unit test to reflect HTML grammar change 2021-07-12 12:21:10 -07:00
Andrew Hlynskyi
b4208ee307 feat(cli): Add a lot of help messages for CLI options 2021-07-03 16:14:57 +03:00
Andrew Hlynskyi
bc94c0cc2f fix(cli): fix theme key loading from config.json, closes #1232 2021-07-03 03:38:24 +03:00
Max Brunsfeld
ad30779d90
Merge pull request #1224 from CyberShadow/pull-20210701-205820
fix(cli): Avoid ENOENT if config.json is not in TREE_SITTER_DIR
2021-07-01 14:51:22 -07:00
Vladimir Panteleev
09e2e9fe87
fix(cli): Avoid ENOENT if config.json is not in TREE_SITTER_DIR
Fixes #1222.
2021-07-01 20:58:23 +00:00
Andrew Hlynskyi
2921386444 feat(cli/loader): Add TREE_SITTER_INTERNAL_BUILD C/C++ compiler definition 2021-06-30 18:53:07 +03:00
Andrew Hlynskyi
60f0953b65 feat(cli): Set TREE_SITTER_DEBUG env var on 'tree-sitter parse -d' 2021-06-30 18:51:43 +03:00
Max Brunsfeld
4d6701519a
Merge pull request #1220 from toyboot4e/deserialize-parse-directories
allow `~` or `$HOME` in `parser-directories`
2021-06-30 08:40:09 -07:00
Max Brunsfeld
190fee3625
Merge pull request #1177 from forbisc/master
update set_included_ranges to modify extent if the current position is at the very beginning of the range.
2021-06-30 08:38:59 -07:00
toyboot4e
56b215e5be allow ~ or $HOME in parser-directories 2021-06-30 23:29:57 +09:00
Max Brunsfeld
e85a279cf2 0.20.0 2021-06-29 17:18:39 -07:00
Max Brunsfeld
c512a0eed7
Merge pull request #1194 from ahlinc/fix/1032
Close #1032 - fix all weirdness in the generated Cargo.toml
2021-06-29 16:48:23 -07:00
Max Brunsfeld
bd1f7f6881
Merge pull request #1196 from ahlinc/feat/independent-binding-files-gen
feat(cli): Independent binding files generation
2021-06-29 16:28:46 -07:00
Max Brunsfeld
af0ed73f76
Merge branch 'master' into fix/1032 2021-06-29 15:59:15 -07:00
Max Brunsfeld
23433f4826
Merge pull request #1210 from ahlinc/fix/init-config-experience
fix(cli): init-config experience, it shouldn't silently overwrite existing config file
2021-06-29 15:53:36 -07:00