From: "Aurélien Aptel" <aurelien.aptel+emacs@gmail.com>
To: Luca Ferrari <fluca1978@infinito.it>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: new major mode doubts
Date: Thu, 17 Jan 2013 16:52:30 +0100 [thread overview]
Message-ID: <CA+5B0FO=tTCpRjZfuoPkJ1Di5GLaRrO3gTr2VrKhV7rt8V97LQ@mail.gmail.com> (raw)
In-Reply-To: <CAKoxK+7=BkKtDejRJiCTTj8DaFa8Ft=FQ=0yLxACFLNDwT_tOw@mail.gmail.com>
On Thu, Jan 17, 2013 at 9:07 AM, Luca Ferrari <fluca1978@infinito.it> wrote:
> (list
> '("\\<\\(BEGIN\\|E\\(?:LSE\\|ND\\)\\|FOR\\|IF\\|LOOP\\|MOVE\\|||T\\(?:HEN\\|O\\)\\|WHILE\\)\\>"
> . font-lock-builtin-face )
> '("\\('\\w*'\\)" . font-lock-variable-name-face) )
> "Main (and minimal) highlighting for the Dataflex mode keywords" )
I don't know much about writing modes but I think you should use
either `rx' or `regexp-opt` for this kind of regex.
next prev parent reply other threads:[~2013-01-17 15:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-17 8:07 new major mode doubts Luca Ferrari
2013-01-17 8:14 ` Luca Ferrari
2013-01-17 14:53 ` Doug Lewan
2013-01-17 15:52 ` Aurélien Aptel [this message]
2013-01-18 3:03 ` Dmitry Gutov
2013-01-19 9:40 ` Luca Ferrari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+5B0FO=tTCpRjZfuoPkJ1Di5GLaRrO3gTr2VrKhV7rt8V97LQ@mail.gmail.com' \
--to=aurelien.aptel+emacs@gmail.com \
--cc=fluca1978@infinito.it \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.