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: http://youtu.be/4q_inV9M_us?t=4m51s ), 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





Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Autoconf mailing list
Autoconf@gnu.org
https://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to