misc/emacs: make _ a word symbol

Fixes #655.

R=rsc, aclements
CC=golang-dev
https://golang.org/cl/1981041
This commit is contained in:
Scott Lawrence 2010-08-26 13:32:50 -04:00 committed by Russ Cox
parent ec72f9bf18
commit 87229f54c3
1 changed files with 2 additions and 2 deletions

View File

@ -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)