mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): Unnest `let'.
This commit is contained in:
parent
ec49bd31ea
commit
da68c4c88c
@ -1,5 +1,8 @@
|
||||
2011-06-28 Deniz Dogan <deniz@dogan.se>
|
||||
|
||||
* emacs-lisp/lisp-mode.el (emacs-lisp-mode-syntax-table): Unnest
|
||||
`let'.
|
||||
|
||||
* textmodes/css-mode.el (css-font-lock-keywords): Fix grouped
|
||||
selectors (Bug#5732).
|
||||
(css-proprietary-nmstart-re): Use `regexp-opt'.
|
||||
|
@ -38,46 +38,46 @@
|
||||
(define-abbrev-table 'lisp-mode-abbrev-table ())
|
||||
|
||||
(defvar emacs-lisp-mode-syntax-table
|
||||
(let ((table (make-syntax-table)))
|
||||
(let ((i 0))
|
||||
(while (< i ?0)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?9))
|
||||
(while (< i ?A)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?Z))
|
||||
(while (< i ?a)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?z))
|
||||
(while (< i 128)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(modify-syntax-entry ?\s " " table)
|
||||
;; Non-break space acts as whitespace.
|
||||
(modify-syntax-entry ?\x8a0 " " table)
|
||||
(modify-syntax-entry ?\t " " table)
|
||||
(modify-syntax-entry ?\f " " table)
|
||||
(modify-syntax-entry ?\n "> " table)
|
||||
;; This is probably obsolete since nowadays such features use overlays.
|
||||
;; ;; Give CR the same syntax as newline, for selective-display.
|
||||
;; (modify-syntax-entry ?\^m "> " table)
|
||||
(modify-syntax-entry ?\; "< " table)
|
||||
(modify-syntax-entry ?` "' " table)
|
||||
(modify-syntax-entry ?' "' " table)
|
||||
(modify-syntax-entry ?, "' " table)
|
||||
(modify-syntax-entry ?@ "' " table)
|
||||
;; Used to be singlequote; changed for flonums.
|
||||
(modify-syntax-entry ?. "_ " table)
|
||||
(modify-syntax-entry ?# "' " table)
|
||||
(modify-syntax-entry ?\" "\" " table)
|
||||
(modify-syntax-entry ?\\ "\\ " table)
|
||||
(modify-syntax-entry ?\( "() " table)
|
||||
(modify-syntax-entry ?\) ")( " table)
|
||||
(modify-syntax-entry ?\[ "(] " table)
|
||||
(modify-syntax-entry ?\] ")[ " table))
|
||||
(let ((table (make-syntax-table))
|
||||
(i 0))
|
||||
(while (< i ?0)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?9))
|
||||
(while (< i ?A)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?Z))
|
||||
(while (< i ?a)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(setq i (1+ ?z))
|
||||
(while (< i 128)
|
||||
(modify-syntax-entry i "_ " table)
|
||||
(setq i (1+ i)))
|
||||
(modify-syntax-entry ?\s " " table)
|
||||
;; Non-break space acts as whitespace.
|
||||
(modify-syntax-entry ?\x8a0 " " table)
|
||||
(modify-syntax-entry ?\t " " table)
|
||||
(modify-syntax-entry ?\f " " table)
|
||||
(modify-syntax-entry ?\n "> " table)
|
||||
;; This is probably obsolete since nowadays such features use overlays.
|
||||
;; ;; Give CR the same syntax as newline, for selective-display.
|
||||
;; (modify-syntax-entry ?\^m "> " table)
|
||||
(modify-syntax-entry ?\; "< " table)
|
||||
(modify-syntax-entry ?` "' " table)
|
||||
(modify-syntax-entry ?' "' " table)
|
||||
(modify-syntax-entry ?, "' " table)
|
||||
(modify-syntax-entry ?@ "' " table)
|
||||
;; Used to be singlequote; changed for flonums.
|
||||
(modify-syntax-entry ?. "_ " table)
|
||||
(modify-syntax-entry ?# "' " table)
|
||||
(modify-syntax-entry ?\" "\" " table)
|
||||
(modify-syntax-entry ?\\ "\\ " table)
|
||||
(modify-syntax-entry ?\( "() " table)
|
||||
(modify-syntax-entry ?\) ")( " table)
|
||||
(modify-syntax-entry ?\[ "(] " table)
|
||||
(modify-syntax-entry ?\] ")[ " table)
|
||||
table)
|
||||
"Syntax table used in `emacs-lisp-mode'.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user