Skip to content

Commit 8dce1e3

Browse files
mssdvddominikh
authored andcommitted
Add missing go.mod and go.work keywords
1 parent f21347a commit 8dce1e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2841,7 +2841,7 @@ If BUFFER, return the number of characters in that buffer instead."
28412841
"Syntax table for `go-dot-mod-mode'.")
28422842

28432843
(defconst go-dot-mod-mode-keywords
2844-
'("module" "go" "require" "replace" "exclude")
2844+
'("module" "go" "toolchain" "require" "exclude" "replace" "retract")
28452845
"All keywords for go.mod files. Used for font locking.")
28462846

28472847
(defgroup go-dot-mod nil
@@ -2891,7 +2891,7 @@ If BUFFER, return the number of characters in that buffer instead."
28912891
(add-to-list 'auto-mode-alist '("go\\.mod\\'" . go-dot-mod-mode))
28922892

28932893
(defconst go-dot-work-mode-keywords
2894-
'("go" "replace" "use")
2894+
'("go" "toolchain" "use" "replace")
28952895
"All keywords for go.work files. Used for font locking.")
28962896

28972897
;;;###autoload

0 commit comments

Comments
 (0)