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:
parent
ec72f9bf18
commit
87229f54c3
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user