unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: font-lock in rexx-mode
Date: Fri, 08 Dec 2006 21:16:51 -0500	[thread overview]
Message-ID: <jwv8xhhg6m1.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: Xns9893C8DF737E3wssddcgisnet@208.49.80.252

> I'm using rexx-mode.el from 
> http://www.sve.man.ac.uk/General/Staff/perrin/rexx.html
> In rexx, I could say
>   foo = "\"
> and the backslash is just a character in quotes.  But with font-lock-mode 
> enabled, the backslash breaks recognition of the end of the string and 
> syntax coloring breaks.  Is there a way to turn off the special meaning of 
> backslash when in rexx mode?

Of course: each mode sets up its own `syntax-table' where the meaning of
each char is described.  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?


        Stefan

  reply	other threads:[~2006-12-09  2:16 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 [this message]
2006-12-09  7:04   ` Bob Babcock
2006-12-09 14:11     ` Stefan Monnier
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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv8xhhg6m1.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).