|
60 | 60 | :type 'string |
61 | 61 | :group 'kpp) |
62 | 62 |
|
63 | | -;; --------------------------------------------------------------------------- |
64 | | -;; Faces |
65 | | -;; --------------------------------------------------------------------------- |
66 | | - |
67 | | -(defface kpp-doc-face |
68 | | - ;; Fix #6: `font-lock-doc-face' was introduced in Emacs 22. Defining our |
69 | | - ;; own face that *inherits* from it gives graceful degradation on older |
70 | | - ;; Emacs versions while using the correct face on modern ones. |
71 | | - '((t (:inherit font-lock-doc-face))) |
72 | | - "Face for KPP LaTeX documentation strings, e.g. {@...}. |
73 | | -Inherits from `font-lock-doc-face'; compatible with Emacs 21+." |
74 | | - :group 'kpp) |
75 | | - |
76 | 63 | ;; --------------------------------------------------------------------------- |
77 | 64 | ;; Syntax table (defined once at load time; shared by all kpp buffers) |
78 | 65 | ;; --------------------------------------------------------------------------- |
@@ -109,16 +96,16 @@ Inherits from `font-lock-doc-face'; compatible with Emacs 21+." |
109 | 96 | '("!.*" 0 font-lock-comment-face t) |
110 | 97 |
|
111 | 98 | ;; {@...} – alternative LaTeX text (documentation) |
112 | | - ;; Uses kpp-doc-face rather than font-lock-doc-face directly; see Fix #6. |
113 | | - '("{@[^}]+}" 0 kpp-doc-face t) |
| 99 | + ;; '("{@[^}]+}" 0 font-lock-doc-face t) |
| 100 | + |
| 101 | + ;; uncertainty of rate coefficient |
| 102 | + ;; '("{§[^}]*}" 0 font-lock-builtin-face t) |
114 | 103 |
|
115 | 104 | ;; {$...} – alternative LaTeX math text |
116 | | - ;; Fix: the original "{$[^}]+}" relied on $ being treated as literal |
117 | | - ;; when not at end of regexp. Using \\$ is explicit and unambiguous. |
118 | | - '("{\\$[^}]+}" 0 font-lock-string-face t) |
| 105 | + ;; '("{\\$[^}]+}" 0 font-lock-string-face t) |
119 | 106 |
|
120 | 107 | ;; {&...} – BibTeX reference |
121 | | - '("{&[^}]+}" 0 font-lock-builtin-face t) |
| 108 | + ;; '("{&[^}]+}" 0 font-lock-function-name-face t) |
122 | 109 |
|
123 | 110 | ;; {%...} – marker tag, e.g. {%TrG} |
124 | 111 | ;; Fix #2: same [A-z] → [A-Za-z] correction as above. |
@@ -165,6 +152,12 @@ Inherits from `font-lock-doc-face'; compatible with Emacs 21+." |
165 | 152 | "\\)\\>") |
166 | 153 | 'font-lock-keyword-face) |
167 | 154 |
|
| 155 | + ;; LaTeX note |
| 156 | + ;; '("//.*" 0 font-lock-string-face t) |
| 157 | + |
| 158 | + ;; Fixme |
| 159 | + ;; '("qqq" 0 font-lock-warning-face t) |
| 160 | + |
168 | 161 | ;; C++-style line comment: // comment |
169 | 162 | '("^//.*" 0 font-lock-comment-face t)) |
170 | 163 | "Font-lock keyword specification for `kpp-mode'.") |
|
0 commit comments