From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: font-lock in rexx-mode
Date: Sat, 09 Dec 2006 09:11:21 -0500 [thread overview]
Message-ID: <jwv4ps5dutz.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: Xns989415171E211wssddcgisnet@208.49.80.252
>> So if in Rexx a \ should not escape the
>> next char, the syntax-table should be changed.
>> Currently rexx-mode.el does:
>>
>> (modify-syntax-entry ?\\ "\\" rexx-mode-syntax-table)
>>
>> which as that \ should be treated as an escape char. So either this
>> line is in error, or the \ should sometimes be treated as an escape
>> char and sometimes not. I don't know anything about the syntax of
>> Rexx, so I have no idea when \ escapes and when it doesn't. E.g. how
>> do you escape a " inside a string in Rexx?
> Thanks for the response. I don't understand why, but commenting out the
> above line and restarting emacs doesn't change the behavior. (I do not
> have a rexx-mode.elc. If I start emacs with --no-init-file, rexx-mode is
> not recognized.)
It's normal: this line is superfluous since it just repeats the default
setting of \. Instead of removing it, you want to replace it with another
line such as
(modify-syntax-entry ?\\ "." rexx-mode-syntax-table)
where the "." means "punctuation". See C-h f modify-syntax-entry RET
for a bit more documentation.
Stefan
next prev parent reply other threads:[~2006-12-09 14:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-09 0:44 font-lock in rexx-mode Bob Babcock
2006-12-09 2:16 ` Stefan Monnier
2006-12-09 7:04 ` Bob Babcock
2006-12-09 14:11 ` Stefan Monnier [this message]
2006-12-09 14:30 ` Stefan Monnier
2006-12-09 18:51 ` Bob Babcock
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv4ps5dutz.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.