From 87229f54c38ffe6e966e35d5ee12ff2adb0aa34b Mon Sep 17 00:00:00 2001 From: Scott Lawrence Date: Thu, 26 Aug 2010 13:32:50 -0400 Subject: [PATCH] misc/emacs: make _ a word symbol Fixes #655. R=rsc, aclements CC=golang-dev https://golang.org/cl/1981041 --- misc/emacs/go-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)