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: Adding a colon as a word boundary for syntax highlighting Date: Sun, 17 Feb 2008 19:27:03 -0900 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <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 1203323843 1235 80.91.229.12 (18 Feb 2008 08:37:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 08:37:23 +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 09:37:47 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 1JR1VP-0006F2-FS for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 09:37:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR1Uv-0002RQ-2H for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 03:37:13 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!multikabel.net!feed20.multikabel.net!sn-xt-ams-06!sn-xt-ams-08!sn-ams!sn-feed-ams-03!sn-post-ams-01!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:156259 X-Mailman-Approved-At: Mon, 18 Feb 2008 03:36:26 -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:51634 Archived-At: Hi: I'm using the following regex subexpression: "\\<\\(" As the left-hand word boundary for syntax highlighting in a lisp-style programming language. "\\(" adds the opening parenthesis as a word boundary. I would like to add the colon (':') as an additional word boundary character. The subexpressions: "\\<\\(:" and "\\<\\(\\:" don't seem to work. In addition I have the following entry: (?: . "w") to the syntax table. Could someone advise me on how to make this work correctly. On a related note, I believe that there is an emacs add-on that allows the user to test elisp regexes, but for the life of me, I can't remember where to find it. TIA Tim