aboutsummaryrefslogtreecommitdiffstats
path: root/java/org/gnu
diff options
context:
space:
mode:
authorAlan Mackenzie2023-09-29 12:07:32 +0000
committerAlan Mackenzie2023-09-29 12:07:32 +0000
commit688c893b18e757249e8b2f6a61964a76417a75bb (patch)
tree8ba3effd2d414650e9adbcf23bd7e52ae73bb799 /java/org/gnu
parent309554edb4f7f6e81d014e7d7aed5ac890899cc0 (diff)
downloademacs-688c893b18e757249e8b2f6a61964a76417a75bb.tar.gz
emacs-688c893b18e757249e8b2f6a61964a76417a75bb.zip
CC Mode: Fix bug in whitespace scanning functions
c-forward-sws and c-backward-sws were scanning over spaces and linefeeds marked with the string-fence syntax-table text property. Fix this by (i) removing the WS text properties c-in-sws and c-is-sws from characters when setting the string-fence on them; (ii) checking the syntax of "space" characters when scanning over them. * lisp/progmodes/cc-defs.el (c-skip-ws-chars-forward) c-skip-ws-chars-backward, c-put-string-fence): New macros. * lisp/progmodes/cc-awk.el (c-awk-set-string-regexp-syntax-table-properties): Use c-put-string-fence. * lisp/progmodes/cc-engine.el (c-beginning-of-statement-1): Correct the determination of macro-start. (c-forward-sws, c-backward-sws): Replace skip-chars-forward by c-skip-ws-chars-forward and skip-chars-backward by c-skip-ws-chars-backward. (c-unmark-<>-around-region, c-after-change-unmark-ml-strings) (c-propertize-ml-string-opener): Use c-put-string-fence. * lisp/progmodes/cc-mode.el (c-put-syn-tab): Use c-put-string-fence when appropriate.
Diffstat (limited to 'java/org/gnu')
0 files changed, 0 insertions, 0 deletions