diff options
author | Randy Taylor <dev@rjt.dev> | 2022-12-07 20:53:35 -0500 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-09 16:46:01 -0800 |
commit | 8f49137c9bf614b285c19a3a845c7606fcba23a4 (patch) | |
tree | 5aa0599d5ab9d60e6cf31324d2755fd3ab8cd244 /admin/notes/tree-sitter | |
parent | 1014bcc8e32c8ab7b25e148d13e7e3a82f9635b9 (diff) | |
download | emacs-8f49137c9bf614b285c19a3a845c7606fcba23a4.tar.gz emacs-8f49137c9bf614b285c19a3a845c7606fcba23a4.tar.bz2 emacs-8f49137c9bf614b285c19a3a845c7606fcba23a4.zip |
Add dockerfile-ts-mode (Bug#59894)
* admin/notes/tree-sitter/build-module/batch.sh: Add dockerfile support.
* admin/notes/tree-sitter/build-module/build.sh: Support different
namespaces and add dockerfile support.
* etc/NEWS: Mention it.
* lisp/progmodes/dockerfile-ts-mode.el: New major mode with
tree-sitter support.
* lisp/progmodes/eglot.el (eglot-server-programs): Add it.
Diffstat (limited to 'admin/notes/tree-sitter')
-rwxr-xr-x | admin/notes/tree-sitter/build-module/batch.sh | 1 | ||||
-rwxr-xr-x | admin/notes/tree-sitter/build-module/build.sh | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/admin/notes/tree-sitter/build-module/batch.sh b/admin/notes/tree-sitter/build-module/batch.sh index d45f37f4b64..6dce000caa6 100755 --- a/admin/notes/tree-sitter/build-module/batch.sh +++ b/admin/notes/tree-sitter/build-module/batch.sh @@ -5,6 +5,7 @@ languages=( 'cpp' 'css' 'c-sharp' + 'dockerfile' 'go' 'html' 'javascript' diff --git a/admin/notes/tree-sitter/build-module/build.sh b/admin/notes/tree-sitter/build-module/build.sh index d562f1a7846..cc31e3f6f02 100755 --- a/admin/notes/tree-sitter/build-module/build.sh +++ b/admin/notes/tree-sitter/build-module/build.sh @@ -14,11 +14,15 @@ echo "Building ${lang}" ### Retrieve sources +namespace="tree-sitter" repo="tree-sitter-${lang}" sourcedir="tree-sitter-${lang}/src" grammardir="tree-sitter-${lang}" case "${lang}" in + "dockerfile") + namespace="camdencheek" + ;; "typescript") sourcedir="tree-sitter-typescript/typescript/src" grammardir="tree-sitter-typescript/typescript" @@ -30,7 +34,7 @@ case "${lang}" in ;; esac -git clone "https://github.com/tree-sitter/${repo}.git" \ +git clone "https://github.com/${namespace}/${repo}.git" \ --depth 1 --quiet cp "${grammardir}"/grammar.js "${sourcedir}" # We have to go into the source directory to compile, because some |