From xemacs-m  Tue May 20 15:43:47 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id PAA13984
	for <xemacs-beta@xemacs.org>; Tue, 20 May 1997 15:43:47 -0500 (CDT)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa11987;
          20 May 97 16:33 EDT
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id QAA28440; Tue, 20 May 1997 16:33:03 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id QAA14024; Tue, 20 May 1997 16:32:37 -0400
Date: Tue, 20 May 1997 16:32:37 -0400
Message-Id: <199705202032.QAA14024@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: Pete Ware <ware@cis.ohio-state.edu>
Cc: XEmacs Beta Test <xemacs-beta@xemacs.org>
Subject: Re: (modify-syntax-entry ?_ "w")
References: <199705181327.GAA09948@xemacs.eng.sun.com>
	<199705200353.XAA11941@anthem.CNRI.Reston.Va.US>
	<vwmvi4dkjom.fsf@calico.cis.ohio-state.edu>
X-Mailer: VM 6.30 under 19.15p4 XEmacs Lucid
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: Abberations
X-Url: http://www.python.org/~bwarsaw


>>>>> "PW" == Pete Ware <ware@cis.ohio-state.edu> writes:

    PW> Oh, you mean an identifier isn't a word?

It can be.  But identifiers can also be composed of
more_than_one_word_separated_by_underscores.  I don't care how you
slice it, underscore is not word class.

    PW> P.P.S. it seems pretty safe as it can't appear anywhere else
    PW> in the language (except as a char).

Sorry, I don't get this.

Here's the problem: let's say I have to recognize the keyword `class',
but I want to be sure that I don't accidentally treat the identifier
`class_characteristics' as a keyword.  If I use regexps, then you
better hope I use something like "class[^_]" instead of "class\\W",
'cause the latter would break if you change the syntax of _.

-Barry

