aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMattias EngdegÄrd2020-02-17 18:26:47 +0100
committerMattias EngdegÄrd2020-02-20 16:03:30 +0100
commit8dc4034ed6f86455c294f22a3d345b00cd4aa143 (patch)
tree62a6795b8918bda84fa682d102d685bcbf6ac1f1 /doc
parentd950a61fc8d14faf71e3b546c59a72b6f711b5df (diff)
downloademacs-8dc4034ed6f86455c294f22a3d345b00cd4aa143.tar.gz
emacs-8dc4034ed6f86455c294f22a3d345b00cd4aa143.zip
Add and remove backslashes in regexps
These irregularities were found by relint; see https://lists.gnu.org/archive/html/emacs-devel/2020-01/msg00949.html . * doc/lispref/modes.texi (Example Major Modes): * etc/srecode/el.srt: * lisp/cedet/data-debug.el (data-debug-mode): * lisp/cedet/semantic/grammar.el (semantic-grammar-mode): * lisp/cedet/srecode/srt-mode.el (srecode-template-mode): * lisp/comint.el (comint--unquote&requote-argument): * lisp/emacs-lisp/lisp-mode.el (lisp-mode): * lisp/gnus/mm-uu.el (mm-uu-type-alist): * lisp/progmodes/cc-awk.el (c-awk-harmless-pattern-characters*): * lisp/progmodes/cfengine.el (cfengine-common-settings): * lisp/progmodes/cperl-mode.el (cperl-after-sub-regexp, cperl-init-faces): * lisp/shell.el (shell-chdrive-regexp, shell--unquote&requote-argument): * lisp/textmodes/tex-mode.el (tex-common-initialization): Remove duplicated backslashes in character alternatives. * lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): * lisp/progmodes/opascal.el (opascal--syntax-propertize): * lisp/progmodes/pascal.el (pascal--syntax-propertize): Remove backslashes escaping non-special characters. * lisp/progmodes/fortran.el (fortran-font-lock-keywords-3): Escape '*'. * lisp/progmodes/perl-mode.el (perl-syntax-propertize-function): Escape '^'.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/modes.texi2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index f380f1669e0..f8cf4578fc2 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -1428,7 +1428,7 @@ or to switch back to an existing one."
1428 (lisp-mode-variables nil t) 1428 (lisp-mode-variables nil t)
1429 (setq-local find-tag-default-function 'lisp-find-tag-default) 1429 (setq-local find-tag-default-function 'lisp-find-tag-default)
1430 (setq-local comment-start-skip 1430 (setq-local comment-start-skip
1431 "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *") 1431 "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\)\\(;+\\|#|\\) *")
1432 (setq imenu-case-fold-search t)) 1432 (setq imenu-case-fold-search t))
1433@end group 1433@end group
1434@end smallexample 1434@end smallexample