aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Volpiatto2013-02-27 10:25:55 -0500
committerStefan Monnier2013-02-27 10:25:55 -0500
commitf2c884009053be5a380a55cf2dec226fc686286c (patch)
treeadd06b72de9320143fc358b77fdc14428e3cf090
parentfa550654db66a9ea08d836e62dcac1d3ada86803 (diff)
downloademacs-f2c884009053be5a380a55cf2dec226fc686286c.tar.gz
emacs-f2c884009053be5a380a55cf2dec226fc686286c.zip
* lisp/font-lock.el (lisp-font-lock-keywords-2): Fix highlighting of
&optional. Fixes: debbugs:13819
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/font-lock.el4
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e69c6be3dcb..822a4a26870 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-02-27 Thierry Volpiatto <thierry.volpiatto@gmail.com>
2
3 * font-lock.el (lisp-font-lock-keywords-2): Fix highlighting of
4 &optional (bug#13819).
5
12013-02-27 Michael Albinus <michael.albinus@gmx.de> 62013-02-27 Michael Albinus <michael.albinus@gmx.de>
2 7
3 * net/tramp-adb.el (tramp-adb-parse-device-names) 8 * net/tramp-adb.el (tramp-adb-parse-device-names)
@@ -5,8 +10,8 @@
5 10
62013-02-26 Michael Albinus <michael.albinus@gmx.de> 112013-02-26 Michael Albinus <michael.albinus@gmx.de>
7 12
8 * net/tramp-sh.el (tramp-sh-handle-insert-directory): Add 13 * net/tramp-sh.el (tramp-sh-handle-insert-directory):
9 "2>/dev/null" to the ls command, in case "en_US.utf8" is not 14 Add "2>/dev/null" to the ls command, in case "en_US.utf8" is not
10 defined. POSIX environments fall back to the "C" locale then and 15 defined. POSIX environments fall back to the "C" locale then and
11 emit a warning, which shall be suppressed. 16 emit a warning, which shall be suppressed.
12 17
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index e5ce4db171b..9436012ee59 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -2336,9 +2336,9 @@ in which C preprocessor directives are used. e.g. `asm-mode' and
2336 ("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'" 2336 ("`\\(\\(?:\\sw\\|\\s_\\)\\(?:\\sw\\|\\s_\\)+\\)'"
2337 (1 font-lock-constant-face prepend)) 2337 (1 font-lock-constant-face prepend))
2338 ;; Constant values. 2338 ;; Constant values.
2339 ("\\<:\\(?:\\sw\\|\\s_\\)+\\>" 0 font-lock-builtin-face) 2339 ("\\_<:\\(?:\\sw\\|\\s_\\)+\\_>" 0 font-lock-builtin-face)
2340 ;; ELisp and CLisp `&' keywords as types. 2340 ;; ELisp and CLisp `&' keywords as types.
2341 ("\\<\\&\\(?:\\sw\\|\\s_\\)+\\>" . font-lock-type-face) 2341 ("\\_<\\&\\(?:\\sw\\|\\s_\\)+\\_>" . font-lock-type-face)
2342 ;; ELisp regexp grouping constructs 2342 ;; ELisp regexp grouping constructs
2343 ((lambda (bound) 2343 ((lambda (bound)
2344 (catch 'found 2344 (catch 'found