help-source-highlight
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-source-highlight] Backreferences in source-highlight 2.7


From: Lorenzo Bettini
Subject: Re: [Help-source-highlight] Backreferences in source-highlight 2.7
Date: Sun, 10 Jun 2007 21:58:13 +0200
User-agent: Icedove 1.5.0.10 (X11/20070329)

gnombat wrote:
> I'm having trouble with backreferences in source-highlight 2.7.  If I
> create a language definition file named foo.lang:
> 
> keyword = `a(.)\1`
> 
> And then I create a test file example.foo:
> 
> aaa abb acc a** a@@
> 
> And then I run source-highlight:
> 
> source-highlight --lang-def=foo.lang example.foo
> 
> Then "aaa", "abb" and "acc" are highlighted, but "a**" and "a@@" are
> not.  Shouldn't the dot match any character?

yes you're right, so this must be a bug...

I'll try to work on it tomorrow

thanks for the feedback!
cheers
        Lorenzo

-- 
Lorenzo Bettini, PhD in Computer Science, DSI, Univ. di Firenze
ICQ# lbetto, 16080134     (GNU/Linux User # 158233)
HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
BLOGS: http://tronprog.blogspot.com  http://longlivemusic.blogspot.com
http://www.gnu.org/software/src-highlite
http://www.gnu.org/software/gengetopt
http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]