all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim Johnson <tim@johnsons-web.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Adding a colon as a word boundary for syntax highlighting
Date: Mon, 18 Feb 2008 10:23:14 -0900	[thread overview]
Message-ID: <13rjmmorimlpa6d@news.supernews.com> (raw)
In-Reply-To: jwvodaefe5z.fsf-monnier+gnu.emacs.help@gnu.org

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
 


  reply	other threads:[~2008-02-18 19:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18  4:27 Adding a colon as a word boundary for syntax highlighting Tim Johnson
2008-02-18 12:58 ` Johan Bockgård
2008-02-18 16:00   ` Tim Johnson
2008-02-18 16:08 ` Stefan Monnier
2008-02-18 19:23   ` Tim Johnson [this message]
2008-02-20 19:41     ` Stefan Monnier
2008-02-20 20:37       ` Tim Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=13rjmmorimlpa6d@news.supernews.com \
    --to=tim@johnsons-web.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.