From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: font-lock in rexx-mode Date: Fri, 08 Dec 2006 21:16:51 -0500 Message-ID: References: NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1165632129 6098 80.91.229.10 (9 Dec 2006 02:42:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 9 Dec 2006 02:42:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 09 03:42:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GssA8-0005op-3E for geh-help-gnu-emacs@m.gmane.org; Sat, 09 Dec 2006 03:42:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GssA7-0001US-JP for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Dec 2006 21:42:03 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.umontreal.ca!news.umontreal.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Fri, 08 Dec 2006 20:16:58 -0600 Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.91 (gnu/linux) Cancel-Lock: sha1:V1fesFZAO2YsS+n1Z5ZglAlhDeY= Original-Lines: 24 Original-NNTP-Posting-Host: 132.204.27.213 Original-X-Trace: sv3-FgzC84As3xgYenD25gS4IQjyqKg18ccFODJjiTGpaObUFDFMaYZpF1sxaazD50Qh19Dgw/wStswq55P!fYkgRjVCtgGkHh5EzDgcfcD/xtNCa9PnJ6r/Lky1Ccxnql4QbAKIMBhunr9ofEFGCPRz0SkiQ5IJ!A3FUTFyp8PV4q/SZAg== Original-X-Complaints-To: abuse@umontreal.ca X-DMCA-Complaints-To: abuse@umontreal.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:143766 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:39369 Archived-At: > 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