emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 2d500b3 091/495: builtins and keywords need to be


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 2d500b3 091/495: builtins and keywords need to be surrounded by symbols, not word characters
Date: Sat, 7 Aug 2021 09:04:50 -0400 (EDT)

branch: elpa/go-mode
commit 2d500b367fd70e65083bea4fc0d0d4c6c5b2cbda
Author: Dominik Honnef <dominikh@fork-bomb.org>
Commit: Dominik Honnef <dominikh@fork-bomb.org>

    builtins and keywords need to be surrounded by symbols, not word characters
    
    word characters will not include _ (which we explicitly declare as a
    symbol constituent) nor any special unicode characters, which emacs
    also classifies as symbols, not word characters.
---
 go-mode.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/go-mode.el b/go-mode.el
index 8bc7316..f51a3ad 100644
--- a/go-mode.el
+++ b/go-mode.el
@@ -66,9 +66,9 @@ some syntax analysis.")
 
 (defun go--build-font-lock-keywords ()
   (append
-   `((,(regexp-opt go-mode-keywords 'words) . font-lock-keyword-face)
-     (,(regexp-opt go-builtins 'words) . font-lock-builtin-face)
-     (,(regexp-opt go-constants 'words) . font-lock-constant-face)
+   `((,(regexp-opt go-mode-keywords 'symbols) . font-lock-keyword-face)
+     (,(regexp-opt go-builtins 'symbols) . font-lock-builtin-face)
+     (,(regexp-opt go-constants 'symbols) . font-lock-constant-face)
      (,go-func-regexp 1 font-lock-function-name-face) ;; function (not method) 
name
      )
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]