From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: Adding a colon as a word boundary for syntax highlighting Date: Mon, 18 Feb 2008 10:23:14 -0900 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13rjmmorimlpa6d@news.supernews.com> References: <13ri26n4913br9a@news.supernews.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: ger.gmane.org 1203375105 28215 80.91.229.12 (18 Feb 2008 22:51:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 22:51:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 23:52:08 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JREq7-0002d1-GS for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 23:51:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JREpd-0002M0-12 for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 17:51:29 -0500 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.glorb.com!sn-xt-sjc-04!sn-xt-sjc-01!sn-xt-sjc-07!sn-post-sjc-01!supernews.com!news.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.10.5 Original-X-Complaints-To: abuse@supernews.com Original-Lines: 21 Original-Xref: shelby.stanford.edu gnu.emacs.help:156283 X-Mailman-Approved-At: Mon, 18 Feb 2008 17:49:45 -0500 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:51661 Archived-At: Stefan Monnier wrote: > No, it doesn't. "\\(" is a regexp element that marks the beginning of > a sub-regexp. It needs a closing "\\)" before the regexp is valid. > It does nothing to parenthesis characters. > > Emacs doesn't know "word boundary characters". All it knows is that > some characters are word-constituents and others aren't. And "\\<" is > a regexp that matches an empty string on the condition that the char on > the left is a non-word-constituent and the char on the right is > a word-constituent. Thank you for explaining the logic of this. > : by default is not considered as a word-constituent. I'm not sure what > you mean by "adding a colon as a word boundary". Perhaps my thinking should be revised to mean "eliminate ':' as a word constituent" Regards Tim