[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#16525: 24.3; Weird font-lock for multi-line regexp
From: |
Alex Kost |
Subject: |
bug#16525: 24.3; Weird font-lock for multi-line regexp |
Date: |
Thu, 23 Jan 2014 13:59:52 +0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) |
Glenn Morris (2014-01-23 12:30 +0400) wrote:
> Alex Kost wrote:
>
>> When I try to use a multi-line regexp in `font-lock-keywords', I have an
>> unusual result: some lines are highlighted and some are not (lines are
>> the same).
> [...]
>> (defun test-font-lock-keywords ()
>> '(("^<\\(foo\\)> \\(.+\\(?:
>> .+?\\)\\)\\(\\[.*\\]\\)$"
>> (1 'font-lock-function-name-face)
>> (2 'font-lock-comment-face)
>> (3 'font-lock-string-face))))
>
> It's not that simple. See info node `(elisp)Font Lock Multiline'.
Thank you, I should have searched before posting.