diff options
| author | Alan Mackenzie | 2024-07-22 12:24:43 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2024-07-22 12:24:43 +0000 |
| commit | caf7426f0ca280b7cf40736e595cad8f7361152f (patch) | |
| tree | 4f94cccea4a3d0f02bd3cc79e26c45c54f955a7b | |
| parent | 9b426e15abd320f9c53692bb6f5834967e6e1a37 (diff) | |
| download | emacs-caf7426f0ca280b7cf40736e595cad8f7361152f.tar.gz emacs-caf7426f0ca280b7cf40736e595cad8f7361152f.zip | |
FIx spurious fontification of variable in Java Mode
This fixes bug#72126.
* lisp/progmodes/cc-engine.el (c-forward-<>-arglist): Remove
tentative type identifier from c-record-type-identifiers should
it turn out not to be a type.
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index e9e58f45aa8..4c319a78e01 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -8771,6 +8771,7 @@ multi-line strings (but not C++, for example)." | |||
| 8771 | ;; This function might do hidden buffer changes. | 8771 | ;; This function might do hidden buffer changes. |
| 8772 | 8772 | ||
| 8773 | (let ((start (point)) | 8773 | (let ((start (point)) |
| 8774 | (old-record-type-identifiers c-record-type-identifiers) | ||
| 8774 | (old-found-types (copy-hash-table c-found-types)) | 8775 | (old-found-types (copy-hash-table c-found-types)) |
| 8775 | ;; If `c-record-type-identifiers' is set then activate | 8776 | ;; If `c-record-type-identifiers' is set then activate |
| 8776 | ;; recording of any found types that constitute an argument in | 8777 | ;; recording of any found types that constitute an argument in |
| @@ -8807,7 +8808,8 @@ multi-line strings (but not C++, for example)." | |||
| 8807 | (nconc c-record-found-types c-record-type-identifiers))) | 8808 | (nconc c-record-found-types c-record-type-identifiers))) |
| 8808 | t) | 8809 | t) |
| 8809 | 8810 | ||
| 8810 | (setq c-found-types old-found-types) | 8811 | (setq c-record-type-identifiers old-record-type-identifiers |
| 8812 | c-found-types old-found-types) | ||
| 8811 | (goto-char start) | 8813 | (goto-char start) |
| 8812 | nil)))) | 8814 | nil)))) |
| 8813 | 8815 | ||