Commit graph

3694 commits

Author SHA1 Message Date
Andrew Hlynskyi
d8ac8f5d16 fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
Max Brunsfeld
d63bbbaadd
Merge pull request #1293 from niklasmohrin/patch-1
Fix highlighting typo on "creating parsers" site
2021-07-25 09:15:50 -07:00
Niklas Mohrin
66cfc05d76
Fix highlighting typo on "creating parsers" site 2021-07-25 14:08:46 +02: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
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
Max Brunsfeld
586f69f113
Merge pull request #1254 from stsewd/doc-wildcard-node
Docs: document `_` wildcard node
2021-07-11 09:58:39 -07:00
Santos Gallegos
4adc2f5c88
Docs: document _ wildcard node
Closes https://github.com/tree-sitter/tree-sitter/issues/1253
2021-07-11 10:25:42 -05:00
Max Brunsfeld
0926fad1e2
Merge pull request #1233 from ahlinc/fix/highlighting-theme-loading
fix(cli): fix theme key loading from config.json, closes #1232
2021-07-05 08:48:40 -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
Max Brunsfeld
23fdbf0e72
Merge pull request #1186 from ahlinc/feat/debug-env-var
feat(cli): Set TREE_SITTER_DEBUG env var on 'tree-sitter parse -d'
2021-06-30 08:58:53 -07: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
be69777350 libs: 0.20.0 2021-06-29 17:18:22 -07:00
Max Brunsfeld
af675f5426
Merge pull request #1219 from ahlinc/pr/1180-emsdk/2.0.24
Improvement for PR #1180 Emscripten version 2.0.24
2021-06-29 16:51:31 -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
Max Brunsfeld
e7d3b29470
Merge pull request #1180 from CyberShadow/pull-20210618-110411
Pin emscripten/emsdk Docker version
2021-06-29 15:45:24 -07:00
Andrew Hlynskyi
a286f831c7 Bump Emscripten version to 2.0.24 2021-06-30 01:06:33 +03:00
Vladimir Panteleev
b14ea51e3d
Refactor emscripten/emsdk version to a single file 2021-06-29 21:39:12 +00:00
Andrew Hlynskyi
f22d62393b fix(cli): actual Rust binding version in generated Cargo.toml 2021-06-30 00:36:11 +03:00
Cameron Forbis
1ea797fbd2 run fmt 2021-06-29 13:59:21 -07:00
Cameron Forbis
ae5340901e address code review comments 2021-06-29 13:49:43 -07:00
Andrew Hlynskyi
202a37f1a1 chore(cli): Use DeriveDisplayOrder Clap's setting
To show sub commands in the defined order that looks more accurate
and have more meaning for sub commands use order.
2021-06-27 03:37:56 +03:00
Andrew Hlynskyi
2e2b239c42 fix(cli): Don't silently overwrite existing config file 2021-06-27 03:15:35 +03:00
Max Brunsfeld
2b83500b74
Merge pull request #1208 from CyberShadow/pull-20210626-181203
cli/src/main.rs: Fix panic with empty file list to parse
2021-06-26 12:44:59 -07:00
Vladimir Panteleev
5adf7bdcde
cli/src/main.rs: Fix panic with empty file list to parse
E.g.: tree-sitter parse --paths /dev/null
2021-06-26 18:11:30 +00:00
Vladimir Panteleev
725f3f7f2b
Pin emscripten/emsdk Docker version
Fixes issues caused by incompatible changes in Emscripten since the
time that tree-sitter was built.
2021-06-26 18:07:12 +00:00
Max Brunsfeld
d7746bec99
Merge pull request #1198 from ahlinc/feat/color-and-aliases
feat(cli): colored help and frequent command aliases
2021-06-24 09:12:48 -07:00
Max Brunsfeld
cf8e7bd413
Merge pull request #1199 from dcreager/edit-file
cli: Allow `$` in `tree-sitter parse --edit`
2021-06-24 09:07:38 -07:00
Andrew Hlynskyi
bd0e60240e fix(cli): Change -h -> -H for the highlight subcommand to don't clash with the help flag 2021-06-24 12:09:00 +03:00
Andrew Hlynskyi
650ee94800 fix(cli): disable help subcommand, -h, --help are enough 2021-06-24 12:04:12 +03:00
Andrew Hlynskyi
1220ec3852 feat(cli): Rename web-ui -> playground with fallback alias 2021-06-24 12:04:12 +03:00
Andrew Hlynskyi
80ee33b073 feat(cli): Add short aliases for frequent subcommands 2021-06-24 11:55:50 +03:00
Andrew Hlynskyi
04badf8a8e feat(cli): Enable clap colored help 2021-06-24 11:55:50 +03:00
Max Brunsfeld
f74187981d
Merge pull request #1197 from ahlinc/feat/clap-subcommand
feat(cli): Make more clearer sub command selection
2021-06-23 12:04:17 -07:00
Douglas Creager
71c43a869b Allow $ in tree-sitter parse --edit
You can now specify `$` as the position to apply an edit, signifying the
end of the file.  (That prevents you from having to calculate the size
of the file yourself.)
2021-06-23 10:04:29 -04:00