From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.help Subject: Re: new major mode doubts Date: Thu, 17 Jan 2013 16:52:30 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1358437969 19326 80.91.229.3 (17 Jan 2013 15:52:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 15:52:49 +0000 (UTC) Cc: help-gnu-emacs To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 16:53:07 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tvrm6-0006iJ-R9 for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 16:53:06 +0100 Original-Received: from localhost ([::1]:35193 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvrlq-0005kx-8k for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 10:52:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvrlY-0005MW-Us for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 10:52:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvrlX-000619-MY for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 10:52:32 -0500 Original-Received: from mail-vc0-f180.google.com ([209.85.220.180]:44538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvrlX-000611-H6 for help-gnu-emacs@gnu.org; Thu, 17 Jan 2013 10:52:31 -0500 Original-Received: by mail-vc0-f180.google.com with SMTP id p16so2674379vcq.11 for ; Thu, 17 Jan 2013 07:52:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lsTqQUy5iUShxdkDsnHyQyFJVk4RwkWbwfcTYhrvYbk=; b=pcKPurkTDdPb0vLaVtMOvev5uMGcU5buOvBQgv1wv/TOXBnk4xNXq8NZ64yHzb++8f kRkZZHMqO8TD+qc9j+NyK43LqyrerB711Ahwd8rTzTkI+Uqo55oBZa2W1ySUEXz/oSfQ Ct0f0iiD8oeZZ+LSYS8ofLBpwM1ENavdvLR5Nkk2Z9S9ombSSfoPH3JU7qsB2rwj76aO TqSeELy4Vd9ahc1HWo/smpLLtrHiDJbgn4WNM84/NKWEtPFnXVK2ktnLGmlFFwXAlkwr 3YdRFMSr9qeGYnuCrgC6Zy1/4RV1p8eZ6je70P/c4ash0BuONBJ9f8RESwVxiqHvlsAE Ejnw== X-Received: by 10.52.154.200 with SMTP id vq8mr5197661vdb.1.1358437950720; Thu, 17 Jan 2013 07:52:30 -0800 (PST) Original-Received: by 10.58.161.145 with HTTP; Thu, 17 Jan 2013 07:52:30 -0800 (PST) In-Reply-To: X-Google-Sender-Auth: ozU2dJ7ObpsYHkDdZwKclJtAseY X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.180 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88675 Archived-At: On Thu, Jan 17, 2013 at 9:07 AM, Luca Ferrari 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.