summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorRandy Taylor <dev@rjt.dev>2022-12-11 18:41:16 -0500
committerYuan Fu <casouri@gmail.com>2022-12-15 17:20:50 -0800
commitfee2efe1b035d601ac53a32801227402e9be8bca (patch)
treeda0956063942da9764fea942547d18e100af5cfd /admin
parente8f7ab67ad18063155f6a7ba14a29e3679dc1e76 (diff)
downloademacs-fee2efe1b035d601ac53a32801227402e9be8bca.tar.gz
Add go-ts-mode and go-mod-ts-mode (Bug#60025)
* admin/notes/tree-sitter/build-module/batch.sh: * admin/notes/tree-sitter/build-module/build.sh: Add go-mod support. * etc/NEWS: Mention them. * lisp/progmodes/eglot.el (eglot-server-programs): Add them. * lisp/progmodes/go-ts-mode.el: New major modes with tree-sitter support.
Diffstat (limited to 'admin')
-rwxr-xr-xadmin/notes/tree-sitter/build-module/batch.sh1
-rwxr-xr-xadmin/notes/tree-sitter/build-module/build.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/admin/notes/tree-sitter/build-module/batch.sh b/admin/notes/tree-sitter/build-module/batch.sh
index e7ef45cf57d..c50b9df37ed 100755
--- a/admin/notes/tree-sitter/build-module/batch.sh
+++ b/admin/notes/tree-sitter/build-module/batch.sh
@@ -9,6 +9,7 @@ languages=(
'c-sharp'
'dockerfile'
'go'
+ 'go-mod'
'html'
'javascript'
'json'
diff --git a/admin/notes/tree-sitter/build-module/build.sh b/admin/notes/tree-sitter/build-module/build.sh
index 4195ea58c3c..b6c83ea9b99 100755
--- a/admin/notes/tree-sitter/build-module/build.sh
+++ b/admin/notes/tree-sitter/build-module/build.sh
@@ -26,6 +26,11 @@ case "${lang}" in
"cmake")
org="uyha"
;;
+ "go-mod")
+ # The parser is called "gomod".
+ lang="gomod"
+ org="camdencheek"
+ ;;
"typescript")
sourcedir="tree-sitter-typescript/typescript/src"
grammardir="tree-sitter-typescript/typescript"