[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adjusting string font-locking to not span multiple lines
From: |
David Hansen |
Subject: |
Re: Adjusting string font-locking to not span multiple lines |
Date: |
Fri, 16 May 2008 13:09:42 +0200 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.60 (gnu/linux) |
On Fri, 16 May 2008 03:35:48 -0700 (PDT) Nordlöw wrote:
> I would like to override the behaviour for string highlighting in
> lines such as the following.
>
> 0 string \xad6" AMGC archive data
>
> such that the the whole pattern
> \xad6"
> is highlighted in the font-lock-constant-face
>
> in order to prevent font-lock from highlighting the rest of the buffer
> in font-lock-string-face.
>
> How do I accomplish this?
If double quotes aren't used as string delimiters at all, just change
the syntax of the double quote character. Otherwise you have to use
font-lock-syntactic-keywords to overwrite the syntax-table.
David