;; Keep as concatinated lists for ease of maintenance
(defconst texinfo-environment-regexp
(concat
- "^@"
- "\\("
- "cartouche\\|"
- "display\\|"
- "end\\|"
- "enumerate\\|"
- "example\\|"
- "f?table\\|"
- "flushleft\\|"
- "flushright\\|"
- "format\\|"
- "group\\|"
- "ifhtml\\|"
- "ifinfo\\|"
- "iftex\\|"
- "ignore\\|"
- "itemize\\|"
- "lisp\\|"
- "macro\\|"
- "multitable\\|"
- "quotation\\|"
- "smalldisplay\\|"
- "smallexample\\|"
- "smallformat\\|"
- "smalllisp\\|"
- "tex"
+ "^@\\("
+ (mapconcat 'identity
+ '("cartouche"
+ "display"
+ "end"
+ "enumerate"
+ "example"
+ "deffn"
+ "defun"
+ "defmac"
+ "defspec"
+ "defva?r"
+ "defopt"
+ "deftypefu?n"
+ "deftypeva?r"
+ "defcv"
+ "defivar"
+ "defop"
+ "defmethod"
+ "deftp"
+ "f?table"
+ "flushleft"
+ "flushright"
+ "format"
+ "group"
+ "ifhtml"
+ "ifinfo"
+ "iftex"
+ "ignore"
+ "itemize"
+ "lisp"
+ "macro"
+ "multitable"
+ "quotation"
+ "smalldisplay"
+ "smallexample"
+ "smallformat"
+ "smalllisp"
+ "tex")
+ "\\|")
"\\)")
"Regexp for environment-like TexInfo list commands.
Subexpression 1 is what goes into the corresponding `@end' statement.")