Skip to content

Commit

Permalink
Set up tree-sitter-rst as submodule (#324)
Browse files Browse the repository at this point in the history
The biggest advantage here is that a user doesn't need to manually check
the correct commit anymore, as this is already pre-set in the submodule
set up.

Addresses #171
  • Loading branch information
Carreau authored Nov 15, 2023
2 parents 80486b4 + 0a933f2 commit 1786a76
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ build
test.dat
test.npy
test.out
tree-sitter-rst/

3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "tree-sitter-rst"]
path = tree-sitter-rst
url = https://github.com/stsewd/tree-sitter-rst.git
5 changes: 1 addition & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,7 @@ pip install -e .
Some functionality requires ``tree_sitter_rst``. To build the TreeSitter rst parser:
```bash
$ git clone https://github.com/stsewd/tree-sitter-rst
$ cd tree-sitter-rst
$ git checkout 3fc88d2097bc854ab6bf70c52b3c482849cf8e8f
$ cd -
$ git submodule update --init
$ papyri build-parser
```
Expand Down
1 change: 1 addition & 0 deletions tree-sitter-rst
Submodule tree-sitter-rst added at 3fc88d

0 comments on commit 1786a76

Please sign in to comment.