From: Scott Lawrence Date: Thu, 26 Aug 2010 17:32:50 +0000 (-0400) Subject: misc/emacs: make _ a word symbol X-Git-Tag: weekly.2010-09-06~75 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=87229f54c38ffe6e966e35d5ee12ff2adb0aa34b;p=gostls13.git misc/emacs: make _ a word symbol Fixes #655. R=rsc, aclements CC=golang-dev https://golang.org/cl/1981041 --- diff --git a/misc/emacs/go-mode.el b/misc/emacs/go-mode.el index e27ee7438e..0b02219887 100644 --- a/misc/emacs/go-mode.el +++ b/misc/emacs/go-mode.el @@ -27,8 +27,8 @@ (defvar go-mode-syntax-table (let ((st (make-syntax-table))) - ;; Symbols - (modify-syntax-entry ?_ "_" st) + ;; Add _ to :word: character class + (modify-syntax-entry ?_ "w" st) ;; Operators (punctuation) (modify-syntax-entry ?+ "." st)