diff options
author | Alan Mackenzie <acm@muc.de> | 2020-08-29 19:29:54 +0000 |
---|---|---|
committer | Alan Mackenzie <acm@muc.de> | 2020-08-29 19:29:54 +0000 |
commit | dddc971f0e58e775578623eb3f026dc43bdda48a (patch) | |
tree | 38409b72e4f9ed3c4e8ba52051443cce87dd7771 /lisp/progmodes/cc-mode.el | |
parent | 4a73fb966876ba8c8aefa24ee51448d2b44df1bf (diff) | |
download | emacs-dddc971f0e58e775578623eb3f026dc43bdda48a.tar.gz emacs-dddc971f0e58e775578623eb3f026dc43bdda48a.tar.bz2 emacs-dddc971f0e58e775578623eb3f026dc43bdda48a.zip |
CC Mode: Fix processing for when c-multiline-string-start-char is a character
* lisp/progmodes/cc-mode.el (c-pps-to-string-delim)
(c-multiline-string-check-final-quote): Replace c-clear-char-property by
c-clear-syn-tab.
(c-multiline-string-check-final-quote): Replace c-put-char-property by
c-put-syn-tab.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r-- | lisp/progmodes/cc-mode.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 066bec60091..74afeecf8f7 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el @@ -1163,7 +1163,7 @@ Note that the style variables are always made local to the buffer." (while (progn (parse-partial-sexp (point) end nil nil st-s 'syntax-table) (unless (bobp) - (c-clear-char-property (1- (point)) 'syntax-table)) + (c-clear-syn-tab (1- (point)))) (setq st-pos (point)) (and (< (point) end) (not (eq (char-before) ?\"))))) @@ -1196,7 +1196,7 @@ Note that the style variables are always made local to the buffer." t) (t ;; At a significant " - (c-clear-char-property (1- (point)) 'syntax-table) + (c-clear-syn-tab (1- (point))) (setq pos-ll (c-literal-limits) pos-lt (c-literal-type pos-ll)) nil))) @@ -1204,7 +1204,7 @@ Note that the style variables are always made local to the buffer." (cond ((bobp)) ((eq pos-lt 'string) - (c-put-char-property (1- (point)) 'syntax-table '(15))) + (c-put-syn-tab (1- (point)) '(15))) (t nil))))) (defvar c-fl-syn-tab-region nil) |