unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Joerg Schuster <js@cis.uni-muenchen.de>
Subject: Re: write your own emacs mode
Date: 16 Dec 2003 15:21:04 +0100	[thread overview]
Message-ID: <crtiskgyhbj.fsf@pinatubo.cis.uni-muenchen.de> (raw)
In-Reply-To: f8dfa927.0312160551.1c4af05c@posting.google.com

drfransch@netscape.net (F. Schaefer) writes:

> Since you're talking about it: I need to get 
> brackets such as ')' and a '|' at the beginning
> or end of a pattern in generic mode. 

I am not sure if I really understand what you want, but the following
expression matches expressions that are surrounded by '(' and ')'.


"\\(\([^\)]*\)\\)"

Mode:

(define-generic-mode 'test-mode
  '("%")
  nil
  '(
    ("\\(\([^\)]*\)\\)"  1 'font-lock-warning-face)   ; bracketed expression
    )
  nil
  nil
  "Mode for testing mode definitions.")

      reply	other threads:[~2003-12-16 14:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-15 10:06 write your own emacs mode Joerg Schuster
2003-12-15 12:37 ` Jesper Harder
2003-12-16 10:05   ` Joerg Schuster
2003-12-16 12:37     ` Jesper Harder
2003-12-16 13:06       ` Joerg Schuster
2003-12-16 13:51   ` F. Schaefer
2003-12-16 14:21     ` Joerg Schuster [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=crtiskgyhbj.fsf@pinatubo.cis.uni-muenchen.de \
    --to=js@cis.uni-muenchen.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).