all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regexp linting run in Emacs tree
@ 2019-08-04 17:49 Mattias Engdegård
  2019-08-04 18:46 ` Paul Eggert
  0 siblings, 1 reply; 8+ messages in thread
From: Mattias Engdegård @ 2019-08-04 17:49 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 212 bytes --]

Yet another scan of regexp mistakes in elisp files in the Emacs source tree, using relint 1.9.
Minor improvements to the regexp detection in relint has expanded the scope. There may be a few false positives.


[-- Attachment #2: relint.log --]
[-- Type: application/octet-stream, Size: 2463 bytes --]

;; -*- compilation -*-
lisp/calendar/diary-lib.el:112:42: In diary-glob-file-regexp-prefix: Escaped non-special character `#' (pos 1)
  "^\\#"
   .^
lisp/cedet/inversion.el:118:25: In call to string-match: Repetition of expression matching an empty string (pos 36)
  "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.?\\([0-9]*\\)?\\s-*\\.?alpha\\([0-9]+\\)?$"
   ............................................^
lisp/org/ob-haskell.el:180:33: In call to re-search-forward: Repetition of expression matching an empty string (pos 40)
  "^\\([ \t]*\\)#\\+begin_src[ \t]haskell*\\(.*\\)?[\r\n]\\([^\000]*?\\)[\r\n][ \t]*#\\+end_src.*"
   ...............................................^
lisp/org/org-capture.el:1688:37: In call to re-search-forward: Duplicated `a-z' inside character alternative (pos 9)
  "%\\(:[-a-za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlntTuUx]\\)"
   ..........^
lisp/progmodes/cc-mode.el:1400:26: In call to re-search-forward: Branch matches subset of a previous branch (pos 12)
  "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*"
   ...................^
lisp/progmodes/cc-mode.el:1508:33: In call to re-search-forward: Branch matches subset of a previous branch (pos 12)
  "\\(\\\\\\(.\\|\n\\|\r\\)\\|[^\\\n\r]\\)*"
   ...................^
lisp/progmodes/fortran.el:1823:36: In call to skip-chars-backward: Duplicated character ` ' (pos 2)
  " \t "
   ...^
lisp/progmodes/fortran.el:1824:65: In call to skip-chars-forward: Duplicated character ` ' (pos 2)
  " \t "
   ...^
lisp/progmodes/gdb-mi.el:2718:33: In call to re-search-forward: Literal `-' not first or last in character alternative (pos 12)
  "\\([[:alnum:]-_]+\\)="
   .............^
lisp/isearch.el:2191:23: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\`\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+\\'"
lisp/isearch.el:2193:30: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\`\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+"
lisp/isearch.el:2195:56: In call to split-string: Error: Unknown syntax code ‘@’: "\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+"
lisp/isearch.el:2196:30: In call to string-match-p: Error: Unknown syntax code ‘@’: "\\(?:\\s-\\|\\s.\\|\\s(\\|\\s)\\|\\s\"\\|\\s\\\\|\\s/\\|\\s$\\|\\s'\\|\\s<\\|\\s>\\|\\s@\\|\\s!\\|\\s|\\)+\\'"

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-08-08 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-08-04 17:49 regexp linting run in Emacs tree Mattias Engdegård
2019-08-04 18:46 ` Paul Eggert
2019-08-04 19:07   ` Mattias Engdegård
2019-08-04 22:57     ` Paul Eggert
2019-08-05 11:33       ` Mattias Engdegård
2019-08-05 17:17         ` Paul Eggert
2019-08-05 21:18           ` Mattias Engdegård
2019-08-08 11:01       ` Mattias Engdegård

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.