Discussion:
autoconf-mode: mark autoconf functions as builtin
Arne Babenhauserheide (IMK)
2013-03-05 15:12:20 UTC
Permalink
Hi,

I added highlighting of functions like AC_INIT for autoconf-mode and
thought it might be useful by default.

Here’s the little Emacs Lisp snippet:

(add-to-list 'autoconf-font-lock-keywords
'("\\(\\(AC\\|AS\\)_.+?\\)\\((\\|\n\\)" (1 font-lock-builtin-face)))

You might want to just include the matching in the variable definition:

("\\(\\(AC\\|AS\\)_.+?\\)\\((\\|\n\\)" (1 font-lock-builtin-face))

I also thought about marking the content inside square brackets (similar
to this:
), but I could not find a
good way to do that
 (multiline regexps seem to be problematic)

I think the easiest way would be to just mark square brackets around the
arguments but could not find a suitable default face


Best wishes,
Arne

Loading...