mirror of
https://github.com/tree-sitter/tree-sitter.git
synced 2026-09-10 07:26:23 -04:00
Docs.
This commit is contained in:
parent
939cdf12b9
commit
9f9f2a52b7
|
|
@ -184,10 +184,10 @@ You can run your parser on an arbitrary file using `tree-sitter parse`. This wil
|
|||
(int_literal [1, 9] - [1, 10]))))))
|
||||
```
|
||||
|
||||
You can pass any number of file paths and glob patterns to `tree-sitter parse`, and it will parse all of the given files. The command will exit with a non-zero status code if any parse errors occurred. You can also prevent the syntax trees from being printed using the `--quiet` flag. This makes `tree-sitter parse` usable as a secondary testing strategy: you can check that a large number of files parse without error:
|
||||
You can pass any number of file paths and glob patterns to `tree-sitter parse`, and it will parse all of the given files. The command will exit with a non-zero status code if any parse errors occurred. You can also prevent the syntax trees from being printed using the `--quiet` flag. Additionally, the `--stat` flag prints out aggregated parse success/failure information for all processed files. This makes `tree-sitter parse` usable as a secondary testing strategy: you can check that a large number of files parse without error:
|
||||
|
||||
```sh
|
||||
tree-sitter parse 'examples/**/*.go' --quiet
|
||||
tree-sitter parse 'examples/**/*.go' --quiet --stat
|
||||
```
|
||||
|
||||
### Command: `highlight`
|
||||
|
|
|
|||
Loading…
Reference in a new issue