checkdoc: Add abbreviation and simplify

* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Add
abbreviation "a.k.a.".  Simplify.
This commit is contained in:
Stefan Kangas 2021-09-23 22:58:12 +02:00
parent cee5bda68d
commit b12b278c2a

View file

@ -2113,11 +2113,12 @@ Examples of abbreviations handled: \"e.g.\", \"i.e.\", \"cf.\"."
(rx letter ".")
(rx (or
;; The abbreviations:
(seq (or (seq (any "cC") "f") ; cf.
(seq (any "eE") ".g") ; e.g.
(seq (any "iI") "." (any "eE")))) ; i.e.
"etc" ; etc.
"vs" ; vs.
(seq (any "cC") "f") ; cf.
(seq (any "eE") ".g") ; e.g.
(seq (any "iI") "." (any "eE")) ; i.e.
"a.k.a" ; a.k.a.
"etc" ; etc.
"vs" ; vs.
;; Some non-standard or less common ones that we
;; might as well ignore.
"Inc" "Univ" "misc" "resp")