Mercurial > emacs
comparison lisp/progmodes/autoconf.el @ 84368:e7118f2331c7
(autoconf-definition-regexp):
Handle optional square brackets around definition name.
author | Thien-Thi Nguyen <ttn@gnuvola.org> |
---|---|
date | Fri, 07 Sep 2007 09:34:38 +0000 |
parents | c1ec1c8a8d2e |
children | 107ccd98fa12 bdb3fe0ba9fa |
comparison
equal
deleted
inserted
replaced
84367:38ef78e02d32 | 84368:e7118f2331c7 |
---|---|
47 | 47 |
48 (defconst autoconf-font-lock-syntactic-keywords | 48 (defconst autoconf-font-lock-syntactic-keywords |
49 '(("\\<dnl\\>" 0 '(11)))) | 49 '(("\\<dnl\\>" 0 '(11)))) |
50 | 50 |
51 (defconst autoconf-definition-regexp | 51 (defconst autoconf-definition-regexp |
52 "AC_\\(SUBST\\|DEFINE\\(_UNQUOTED\\)?\\)(\\(\\sw+\\)") | 52 "AC_\\(SUBST\\|DEFINE\\(_UNQUOTED\\)?\\)(\\[*\\(\\sw+\\)\\]*") |
53 | 53 |
54 (defvar autoconf-font-lock-keywords | 54 (defvar autoconf-font-lock-keywords |
55 `(("\\_<A[CHMS]_\\sw+" . font-lock-keyword-face) | 55 `(("\\_<A[CHMS]_\\sw+" . font-lock-keyword-face) |
56 (,autoconf-definition-regexp | 56 (,autoconf-definition-regexp |
57 3 font-lock-function-name-face) | 57 3 font-lock-function-name-face) |