summaryrefslogtreecommitdiff
path: root/lisp/textmodes/nroff-mode.el
diff options
context:
space:
mode:
authorWerner LEMBERG <wl@gnu.org>2006-02-03 21:13:59 +0000
committerWerner LEMBERG <wl@gnu.org>2006-02-03 21:13:59 +0000
commitcb8ec72ad3c43e903ddf4b74ba988276529928de (patch)
tree795dc6b12b4bbd8f1678e0cea2979ec2d17085b2 /lisp/textmodes/nroff-mode.el
parente1144ff64efdbb4ffaeae341f1d9482d0f7cea49 (diff)
downloademacs-cb8ec72ad3c43e903ddf4b74ba988276529928de.tar.gz
* textmodes/nroff-mode.el (nroff-font-lock-keywords): Don't be
greedy to find the closing bracket in \*[...] and similar expressions. This is a first rough fix -- many additional refinements are necessary to make this nroff mode really usable with groff.
Diffstat (limited to 'lisp/textmodes/nroff-mode.el')
-rw-r--r--lisp/textmodes/nroff-mode.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/textmodes/nroff-mode.el b/lisp/textmodes/nroff-mode.el
index 7fd2db1deb6..ababc041099 100644
--- a/lisp/textmodes/nroff-mode.el
+++ b/lisp/textmodes/nroff-mode.el
@@ -1,7 +1,7 @@
;;; nroff-mode.el --- GNU Emacs major mode for editing nroff source
;; Copyright (C) 1985, 1986, 1994, 1995, 1997, 2001, 2002, 2003,
-;; 2004, 2005 Free Software Foundation, Inc.
+;; 2004, 2005, 2006 Free Software Foundation, Inc.
;; Maintainer: FSF
;; Keywords: wp
@@ -86,14 +86,14 @@
;; variants). This won't currently do groff's \A'foo' and
;; the like properly. One might expect it to highlight an escape's
;; arguments in common cases, like \f.
- (concat "\\\\" ; backslash
- "\\(" ; followed by various possibilities
- (mapconcat 'identity
- '("[f*n]*\\[.+]" ; some groff extensions
- "(.." ; two chars after (
- "[^(\"]" ; single char escape
- ) "\\|")
- "\\)")
+ (concat "\\\\" ; backslash
+ "\\(" ; followed by various possibilities
+ (mapconcat 'identity
+ '("[f*n]*\\[.+?]" ; some groff extensions
+ "(.." ; two chars after (
+ "[^(\"]" ; single char escape
+ ) "\\|")
+ "\\)")
)
"Font-lock highlighting control in `nroff-mode'."
:group 'nroff