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: Wed, 20 Feb 2008 11:37:34 -0900 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <13rp3rlaap66r28@news.supernews.com> References: <13ri26n4913br9a@news.supernews.com> <13rjmmorimlpa6d@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 1203540141 15645 80.91.229.12 (20 Feb 2008 20:42:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Feb 2008 20:42:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 20 21:42:46 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 1JRvm8-0005rP-NB for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 21:42:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JRvld-0001UR-P0 for geh-help-gnu-emacs@m.gmane.org; Wed, 20 Feb 2008 15:42:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sn-xt-sjc-02!sn-xt-sjc-09!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: 28 Original-Xref: shelby.stanford.edu gnu.emacs.help:156346 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:51707 Archived-At: Stefan Monnier wrote: >> Perhaps my thinking should be revised to mean >> "eliminate ':' as a word constituent" > > Better would be to describe concretely with an example what you want > to do. > > > Stefan :-) I want to highlight "second" as in (second lst) or "second" as in (std:second lst) I created an intermediary solution by adding a group with ":\\(" as the left regex. Works as I want... The full solution might be something like this (I think, but haven't combined them and haven't tested) ":\\(\\|\\<\\(" Where the alternatives are 1)empty string 2)colon Unfortunately, I don't code elisp or elisp regexes for a living and I tend to forget most of what I've learned from one session to another. I believe that your logical explanation put me on the right track. thanks ---- Tim