help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: write your own emacs mode


From: Joerg Schuster
Subject: Re: write your own emacs mode
Date: 16 Dec 2003 15:21:04 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

address@hidden (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 via email to

[Prev in Thread] Current Thread [Next in Thread]