[Top][All Lists]

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

Re: regexp does not work as documented

From: Johan Bockgård
Subject: Re: regexp does not work as documented
Date: Tue, 06 May 2008 16:15:35 +0200
User-agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux)

Bruno Haible <address@hidden> writes:

> The regular expression (as an Emacs string)
>   "^msgstr\\(\\[[0-9]\\]\\)?.*\n\\(\".*\n\\)*"
> is supposed to search for a line starting with "msgstr" and an optional
> digit inside brackets, followed by as many lines starting with a double-quote
> as possible. The Emacs documentation says:
>   "The matcher processes a `*' construct by matching, immediately, as
>    many repetitions as can be found."
> This is apparently not the case with the above regexp.

This is a font lock problem.

(info "(elisp) Multiline Font Lock")

Johan Bockgård

reply via email to

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