[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock "=
From: |
Lennart Borgman |
Subject: |
Re: font-lock "= |
Date: |
Fri, 7 May 2010 00:17:25 +0200 |
On Fri, May 7, 2010 at 12:13 AM, Kevin Rodgers
<kevin.d.rodgers@gmail.com> wrote:
> 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 ?\" ".")
It looks like amrita has subcode from other languages so that will
probably not work.