From 0a933f26f7f528e79e99da46817d3e738c41f1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Sat, 11 Nov 2023 21:14:49 -0300 Subject: [PATCH] Set up tree-sitter-rst as submodule --- .gitignore | 2 +- .gitmodules | 3 +++ Readme.md | 5 +---- tree-sitter-rst | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .gitmodules create mode 160000 tree-sitter-rst diff --git a/.gitignore b/.gitignore index 68da1c77..9b1aa032 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ build test.dat test.npy test.out -tree-sitter-rst/ + diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..2cc60c3f --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "tree-sitter-rst"] + path = tree-sitter-rst + url = https://github.com/stsewd/tree-sitter-rst.git diff --git a/Readme.md b/Readme.md index c4d14bdf..44bd6f0e 100644 --- a/Readme.md +++ b/Readme.md @@ -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 ``` diff --git a/tree-sitter-rst b/tree-sitter-rst new file mode 160000 index 00000000..3fc88d20 --- /dev/null +++ b/tree-sitter-rst @@ -0,0 +1 @@ +Subproject commit 3fc88d2097bc854ab6bf70c52b3c482849cf8e8f