1
0
mirror of https://github.com/golang/go synced 2024-11-24 15:20:03 -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
(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)