Skip to content

Commit

Permalink
Add missing go.mod and go.work keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
mssdvd authored and dominikh committed Aug 23, 2023
1 parent f21347a commit 8dce1e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -2841,7 +2841,7 @@ If BUFFER, return the number of characters in that buffer instead."
"Syntax table for `go-dot-mod-mode'.")

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

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

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

;;;###autoload
Expand Down

0 comments on commit 8dce1e3

Please sign in to comment.