[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new major mode doubts
From: |
Aurélien Aptel |
Subject: |
Re: new major mode doubts |
Date: |
Thu, 17 Jan 2013 16:52:30 +0100 |
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.