chiark / gitweb /
dot-emacs: Update mdw-hanging-indents for Doxygen-style lists.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 21 Apr 2008 11:03:49 +0000 (12:03 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 21 Apr 2008 11:03:49 +0000 (12:03 +0100)
Doxygen uses a leading `-' or `-#' for unordered or ordered lists
respectively.  Supporting this will probably interfere with poorly
wrapped inline mathematics, but that's probably OK.  We'll see...

dot-emacs.el

index cb2047dafc7ad8e6e11a26ed399c55653e9c1d71..d123512c48779d951d28e5210919e83dc63f24a0 100644 (file)
@@ -426,7 +426,10 @@ (defvar mdw-fill-prefix nil
 (make-variable-buffer-local 'mdw-fill-prefix)
 
 (defvar mdw-hanging-indents
-  "\\(\\(\\([*o]\\|--\\|[0-9]+\\.\\|\\[[0-9]+\\]\\|([a-zA-Z])\\)[ \t]+\\)?\\)"
+  (concat "\\(\\("
+           "\\([*o]\\|-[-#]?\\|[0-9]+\\.\\|\\[[0-9]+\\]\\|([a-zA-Z])\\)"
+           "[ \t]+"
+         "\\)?\\)")
   "*Standard regular expression matching things which might be part of a
 hanging indent.  This is mainly useful in `auto-fill-mode'.")