### Retrieve sources
-namespace="tree-sitter"
+org="tree-sitter"
repo="tree-sitter-${lang}"
sourcedir="tree-sitter-${lang}/src"
grammardir="tree-sitter-${lang}"
case "${lang}" in
"dockerfile")
- namespace="camdencheek"
+ org="camdencheek"
;;
"cmake")
- namespace="uyha"
+ org="uyha"
;;
"typescript")
sourcedir="tree-sitter-typescript/typescript/src"
;;
esac
-git clone "https://github.com/${namespace}/${repo}.git" \
+git clone "https://github.com/${org}/${repo}.git" \
--depth 1 --quiet
cp "${grammardir}"/grammar.js "${sourcedir}"
# We have to go into the source directory to compile, because some