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: Wed, 20 Feb 2008 11:37:34 -0900	[thread overview]
Message-ID: <13rp3rlaap66r28@news.supernews.com> (raw)
In-Reply-To: jwv63wjjtzo.fsf-monnier+gnu.emacs.help@gnu.org

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


      reply	other threads:[~2008-02-20 20:37 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
2008-02-20 19:41     ` Stefan Monnier
2008-02-20 20:37       ` Tim Johnson [this message]

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=13rp3rlaap66r28@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.