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

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

Re: Adjusting string font-locking to not span multiple lines


From: Nordlöw
Subject: Re: Adjusting string font-locking to not span multiple lines
Date: Fri, 16 May 2008 06:39:22 -0700 (PDT)
User-agent: G2/1.0

On 16 Maj, 13:09, David Hansen <david.han...@gmx.net> wrote:
> 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

How do I "just change the syntax of the double quote character"?
Do you mean like:
(setq font-lock-defaults `(filemagic-font-lock-keywords nil))

Thanks in advance,
Nordlöw


reply via email to

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