diff options
author | Gabriel Santos <gabrielsantosdesouza@disroot.org> | 2024-11-20 23:07:28 -0300 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2025-02-12 06:46:58 +0100 |
commit | aade1b707c6b4932ed023f387d49324c6a7123eb (patch) | |
tree | ef1dc689348342d6955cf65baaf91c878326db50 /lisp/emacs-lisp/generate-lisp-file.el | |
parent | 7aa42917288829406d12c6d5c537ef9a720326a2 (diff) | |
download | emacs-aade1b707c6b4932ed023f387d49324c6a7123eb.tar.gz emacs-aade1b707c6b4932ed023f387d49324c6a7123eb.tar.bz2 emacs-aade1b707c6b4932ed023f387d49324c6a7123eb.zip |
Add go-work-ts-mode for Go workspace files
* lisp/progmodes/eglot.el (eglot-server-programs): Add go-work-ts-mode.
* lisp/progmodes/go-ts-mode.el
(Commentary): Add the repositories for the grammars.
(go-work-ts-mode--indent-rules, go-work-ts-mode--keywords)
(go-work-ts-mode--font-lock-settings): New variables.
(go-work-ts-mode--directive-matcher, go-work-ts-mode): New functions.
(go-mod-ts-mode--directive-matcher): Rename from
go-mod-ts-mode--in-directive-p. Be more specific on the directive
location (modules). Replace mention of nil with function. Use member
instead of pcase to check node types.
* admin/notes/tree-sitter/build-module/batch.sh
* admin/notes/tree-sitter/build-module/build.sh: Add go-work support.
* test/lisp/progmodes/go-ts-mode-resources/font-lock-package.go:
* test/lisp/progmodes/go-ts-mode-resources/indent-mod.erts:
* test/lisp/progmodes/go-ts-mode-resources/indent-work.erts:
New files for testing indentation and font-locking for Go
module and workspace files.
* test/lisp/progmodes/go-ts-mode-tests.el: Add tests for Go module and
workspace files. (Bug#74461)
* etc/NEWS: Announce go-work-ts-mode.
Diffstat (limited to 'lisp/emacs-lisp/generate-lisp-file.el')
0 files changed, 0 insertions, 0 deletions