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

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

Re: font-lock "=


From: Kevin Rodgers
Subject: Re: font-lock "=
Date: Thu, 06 May 2010 16:13:28 -0600
User-agent: Thunderbird 2.0.0.24 (Macintosh/20100228)

Roger Mason wrote:
Hello,

I'm trying to write a major mode for amrita.  My mode is derived from
fundamental-mode.
One of the operators in the language is "=.  That is, quotation marks
followed by the equals sign.  This is currently higlighted as a string
that continues up to the next occurrence of ".  I'd like to turn off
this behaviour and have the character pair "= not highlighted, or
highlighted in some other face.

Can someone suggest how to accomplish this?

;; make double quote the same as equals sign:
(modify-syntax-entry ?\" (char-to-string (char-syntax ?=)))

or just

;; change double quote to punctuation:
(modify-syntax-entry ?\" ".")

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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