diff options
| author | Richard M. Stallman | 1998-07-14 08:22:05 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-07-14 08:22:05 +0000 |
| commit | aaa154880b833976770f5e39fc821ab1d2966db0 (patch) | |
| tree | 3acef0de80a81ece88fe1ede7faab979478dc7f0 | |
| parent | 09a4d958b20244f2f04f1fff5894d7a6070bcaa0 (diff) | |
| download | emacs-aaa154880b833976770f5e39fc821ab1d2966db0.tar.gz emacs-aaa154880b833976770f5e39fc821ab1d2966db0.zip | |
(lisp-font-lock-keywords-2): support `handler-*',
`restart-*', `*-bind', `abort', `the', `break', `compiler-let'
`symbol-macrolet' etc.
(lisp-font-lock-keywords-1): Support `define-*-macro',
`define-condition', `define-setf-expander' etc.
| -rw-r--r-- | lisp/font-lock.el | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 0d8f881c210..2dbb5e0c72b 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -1908,8 +1908,9 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item." | |||
| 1908 | ;; Function declarations. | 1908 | ;; Function declarations. |
| 1909 | "\\(advice\\|alias\\|generic\\|macro\\*?\\|method\\|" | 1909 | "\\(advice\\|alias\\|generic\\|macro\\*?\\|method\\|" |
| 1910 | "setf\\|subst\\*?\\|un\\*?\\|" | 1910 | "setf\\|subst\\*?\\|un\\*?\\|" |
| 1911 | "ine-\\(derived-mode\\|function\\|" | 1911 | "ine-\\(derived-mode\\|function\\|condition\\|" |
| 1912 | "skeleton\\|widget\\)\\)\\|" | 1912 | "skeleton\\|widget\\|setf-expander\\|method-combination\\|" |
| 1913 | "\\(symbol\\|compiler\\|modify\\)-macro\\)\\)\\|" | ||
| 1913 | ;; Variable declarations. | 1914 | ;; Variable declarations. |
| 1914 | "\\(const\\|custom\\|face\\|var\\)\\|" | 1915 | "\\(const\\|custom\\|face\\|var\\)\\|" |
| 1915 | ;; Structure declarations. | 1916 | ;; Structure declarations. |
| @@ -1919,8 +1920,9 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item." | |||
| 1919 | "[ \t'\(]*" | 1920 | "[ \t'\(]*" |
| 1920 | "\\(\\sw+\\)?") | 1921 | "\\(\\sw+\\)?") |
| 1921 | '(1 font-lock-keyword-face) | 1922 | '(1 font-lock-keyword-face) |
| 1922 | '(7 (cond ((match-beginning 3) font-lock-function-name-face) | 1923 | '(8 (cond ((match-beginning 3) font-lock-function-name-face) |
| 1923 | ((match-beginning 5) font-lock-variable-name-face) | 1924 | ((match-beginning 4) font-lock-function-name-face) |
| 1925 | ((match-beginning 6) font-lock-variable-name-face) | ||
| 1924 | (t font-lock-type-face)) | 1926 | (t font-lock-type-face)) |
| 1925 | nil t)) | 1927 | nil t)) |
| 1926 | ;; | 1928 | ;; |
| @@ -1956,10 +1958,13 @@ This function could be MATCHER in a MATCH-ANCHORED `font-lock-keywords' item." | |||
| 1956 | (cons (concat | 1958 | (cons (concat |
| 1957 | "(" (regexp-opt | 1959 | "(" (regexp-opt |
| 1958 | '("when" "unless" "case" "ecase" "typecase" "etypecase" | 1960 | '("when" "unless" "case" "ecase" "typecase" "etypecase" |
| 1959 | "ccase" "ctypecase" "handler-case" "assert" "error" | 1961 | "ccase" "ctypecase" "handler-case" "handler-bind" |
| 1960 | "loop" "do" "do*" "dotimes" "dolist" | 1962 | "restart-bind" "restart-case" |
| 1961 | "proclaim" "declaim" "declare" | 1963 | "assert" "abort" "error" "cerror" "break" "ignore-errors" |
| 1962 | "lexical-let" "lexical-let*" "flet" "labels" | 1964 | "loop" "do" "do*" "dotimes" "dolist" "the" |
| 1965 | "proclaim" "declaim" "declare" "symbol-macrolet" | ||
| 1966 | "lexical-let" "lexical-let*" "flet" "labels" "compiler-let" | ||
| 1967 | "destructuring-bind" "macrolet" "tagbody" "block" | ||
| 1963 | "return" "return-from") t) | 1968 | "return" "return-from") t) |
| 1964 | "\\>") | 1969 | "\\>") |
| 1965 | 1) | 1970 | 1) |