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: Word Boundary problem with regex Date: Sun, 5 Jun 2005 14:24:42 -0800 Message-ID: <20050605222442.GC1777@johnsons-web.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1118009967 11084 80.91.229.2 (5 Jun 2005 22:19:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 5 Jun 2005 22:19:27 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 06 00:19:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Df3SJ-0001Pf-50 for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Jun 2005 00:18:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Df3YQ-0004cx-8k for geh-help-gnu-emacs@m.gmane.org; Sun, 05 Jun 2005 18:25:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Df3Xb-0004cN-PK for help-gnu-emacs@gnu.org; Sun, 05 Jun 2005 18:24:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Df3Xb-0004cB-9g for help-gnu-emacs@gnu.org; Sun, 05 Jun 2005 18:24:23 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Df3Xa-0004bk-UU for help-gnu-emacs@gnu.org; Sun, 05 Jun 2005 18:24:23 -0400 Original-Received: from [208.218.214.5] (helo=postoffice.cniweb.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Df3Xf-0000jO-9Y for help-gnu-emacs@gnu.org; Sun, 05 Jun 2005 18:24:27 -0400 Original-Received: from linus.johnson.com (rdbck-static-445.palmer.mtaonline.net [64.4.232.191]) by postoffice.cniweb.net (8.13.3/8.13.3) with ESMTP id j55MAs18017634 for ; Sun, 5 Jun 2005 18:10:55 -0400 (EDT) Original-Received: from linus.johnson.com (localhost.johnson.com [127.0.0.1]) by linus.johnson.com (8.12.8/8.12.8) with ESMTP id j55MOgfL019602 for ; Sun, 5 Jun 2005 14:24:42 -0800 Original-Received: (from tim@localhost) by linus.johnson.com (8.12.8/8.12.8/Submit) id j55MOgZ2019600 for help-gnu-emacs@gnu.org; Sun, 5 Jun 2005 14:24:42 -0800 Original-To: help-gnu-emacs@gnu.org Mail-Followup-To: Tim Johnson , help-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.4.2.1i 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:27245 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27245 In case of word wrapping the text between (but not including) the lines of asterisks should be on one line: I am using the following expression ******************************************************************************* \\([^][ \t\r\n{}()]+\\):[ ]*\\(d\\(ef\\|oes\\)\\|func\\(tion\\)\\|has\\|sub?\\) ******************************************************************************* To colorize the following words: "def" "does" "func" "function" "has" "sub" - which define subroutines. When I type the following: test: def[val][print val], "def" is colorized properly. One would exect that adding a letter to "def" would turn off the target color, but does not. This suggests to me that I have not properly defined the word boundary in the expression above. Can anyone tell me what I am doing wrong? FYI: This is for the rebol programming language (www.rebol.com), it should be noted that in lispish fashion, a subroutine is an expression, not an immutable control structure. thanks tim -- Tim Johnson http://www.alaska-internet-solutions.com