diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2020-02-20 11:25:25 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2020-02-20 11:25:25 +0100 |
commit | 9f0852474810311fd2b26fa3756ab6d816016389 (patch) | |
tree | 00c152dce0936521b6fadaee9e76bebb115eea38 /lisp/progmodes/cc-defs.el | |
parent | 1d10885763287f03a5fb348ba27715e049bb48f8 (diff) | |
download | emacs-9f0852474810311fd2b26fa3756ab6d816016389.tar.gz emacs-9f0852474810311fd2b26fa3756ab6d816016389.tar.bz2 emacs-9f0852474810311fd2b26fa3756ab6d816016389.zip |
Fix broken regexps
Incorrect escaping prevented these from working as intended.
Found by relint.
* lisp/progmodes/cc-defs.el (c-search-backward-char-property):
Add missing backslash.
* lisp/progmodes/simula.el (simula-mode):
Remove one backslash too many.
Diffstat (limited to 'lisp/progmodes/cc-defs.el')
-rw-r--r-- | lisp/progmodes/cc-defs.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index 5ca64a0a752..12be09d9b45 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el @@ -1278,7 +1278,7 @@ point is then left undefined." place ,property nil ,(or limit '(point-min))))) (when (> place ,(or limit '(point-min))) (goto-char place) - (search-backward-regexp "\\(n\\|.\\)") ; to set the match-data. + (search-backward-regexp "\\(\n\\|.\\)") ; to set the match-data. (point)))) (defun c-clear-char-property-with-value-function (from to property value) |