diff options
| author | Alan Mackenzie | 2019-04-25 15:18:12 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2019-04-25 15:18:12 +0000 |
| commit | efb8921a574437aed6209695891c14860bd55f51 (patch) | |
| tree | 58310e515e725caa17f7cd2cc9e3ac1b48bbafde /src/alloc.c | |
| parent | a1386fa6a7698c04902354cd5fefb39056b0a901 (diff) | |
| download | emacs-efb8921a574437aed6209695891c14860bd55f51.tar.gz emacs-efb8921a574437aed6209695891c14860bd55f51.zip | |
Fix some corner cases in the recognition of C++ raw strings.
These are where changing the identifier in a raw string delimiter causes
different delimiters to match eachother.
* lisp/progmodes/cc-engine.el (c-raw-string-end-delim-disrupted): New
variable.
(c-before-change-check-raw-strings): Use new variable.
(c-after-change-unmark-raw-strings): When typing into an opening delimiter or
altering its close delimiter causes the opening delimiter to match a later
closing delimiter, clear all syntax-table char properties from the opening
delimiter onwards, and set c-new-END to point max. Also, when changing a
closing delimiter, check whether its new value matches a previously open
opening delimiter earlier in the buffer, and amend the syntax-table text
properties appropriately.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions