1
0
mirror of https://github.com/golang/go synced 2024-11-21 19:04:44 -07:00

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

View File

@ -27,8 +27,8 @@
(defvar go-mode-syntax-table (defvar go-mode-syntax-table
(let ((st (make-syntax-table))) (let ((st (make-syntax-table)))
;; Symbols ;; Add _ to :word: character class
(modify-syntax-entry ?_ "_" st) (modify-syntax-entry ?_ "w" st)
;; Operators (punctuation) ;; Operators (punctuation)
(modify-syntax-entry ?+ "." st) (modify-syntax-entry ?+ "." st)