Document how to update existing parsers

pull/643/head
Wilfred Hughes 2024-02-13 08:45:45 +07:00
parent 58536b9426
commit 3490aea9ec
1 changed files with 8 additions and 0 deletions

@ -138,3 +138,11 @@ Run the regression test script and update the `.expected` file.
$ ./sample_files/compare_all.sh
$ cp sample_files/compare.result sample_files/compare.expected
```
## Maintenance
To update a parser that is already imported, use `git subtree pull`.
```
$ git subtree pull --prefix=vendored_parsers/tree-sitter-json git@github.com:tree-sitter/tree-sitter-json.git master
```