mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
Fix some word/symbol classifications in scheme-mode's syntax table.
* lisp/progmodes/scheme.el (scheme-mode-syntax-table): Don't use symbol-constituent as the default, as that stops font-lock from working properly. Fixes: debbugs:8843
This commit is contained in:
parent
e013fb340c
commit
f13f86fbf2
@ -1,3 +1,9 @@
|
||||
2011-08-22 Chong Yidong <cyd@stupidchicken.com>
|
||||
|
||||
* progmodes/scheme.el (scheme-mode-syntax-table): Don't use
|
||||
symbol-constituent as the default, as that stops font-lock from
|
||||
working properly (Bug#8843).
|
||||
|
||||
2011-08-21 Lars Magne Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* mail/smtpmail.el (smtpmail-via-smtp): Only bind
|
||||
|
@ -55,24 +55,24 @@
|
||||
(defvar scheme-mode-syntax-table
|
||||
(let ((st (make-syntax-table))
|
||||
(i 0))
|
||||
|
||||
;; Default is atom-constituent.
|
||||
(while (< i 256)
|
||||
;; Symbol constituents
|
||||
;; We used to treat chars 128-256 as symbol-constituent, but they
|
||||
;; should be valid word constituents (Bug#8843). Note that valid
|
||||
;; identifier characters are Scheme-implementation dependent.
|
||||
(while (< i ?0)
|
||||
(modify-syntax-entry i "_ " st)
|
||||
(setq i (1+ i)))
|
||||
|
||||
;; Word components.
|
||||
(setq i ?0)
|
||||
(while (<= i ?9)
|
||||
(modify-syntax-entry i "w " st)
|
||||
(setq i (1+ ?9))
|
||||
(while (< i ?A)
|
||||
(modify-syntax-entry i "_ " st)
|
||||
(setq i (1+ i)))
|
||||
(setq i ?A)
|
||||
(while (<= i ?Z)
|
||||
(modify-syntax-entry i "w " st)
|
||||
(setq i (1+ ?Z))
|
||||
(while (< i ?a)
|
||||
(modify-syntax-entry i "_ " st)
|
||||
(setq i (1+ i)))
|
||||
(setq i ?a)
|
||||
(while (<= i ?z)
|
||||
(modify-syntax-entry i "w " st)
|
||||
(setq i (1+ ?z))
|
||||
(while (< i 128)
|
||||
(modify-syntax-entry i "_ " st)
|
||||
(setq i (1+ i)))
|
||||
|
||||
;; Whitespace
|
||||
|
Loading…
Reference in New Issue
Block a user