diff options
author | Alan Mackenzie <acm@muc.de> | 2019-05-02 14:30:29 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2019-05-02 14:33:05 +0000 |
commit | 39acaff574140b67ef5311c5764a6b3b29491991 (patch) | |
tree | 3189f1fe8afe8bd4985a021eb3e271dc523bda8a /.clang-format | |
parent | 3fa9c9f774277530f4dac6c4f5de157cb4cdc536 (diff) | |
download | emacs-39acaff574140b67ef5311c5764a6b3b29491991.tar.gz |
CC Mode: Fix multiline block comments in macros.
In particulr, handle multiline block comments whose newlines are not escaped.
There is an example of this in #define EXTRA_CONTEXT_FIELDS in editfns.c.
* lisp/progmodes/cc-engine.el (c-beginning-of-macro, c-end-of-macro): Enclose
the loops scanning escaped newlines with outer loops which check
heuristically for, respectively, a block comment ender and a block comment
starter on the lines we end up on. (A rigorous syntactic check would be too
slow, here.)
* lisp/progmodes/cc-langs.el (c-last-c-comment-end-on-line-re)
(c-last-open-c-comment-start-on-line-re): New language constants/variables.
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions