Re: Re: error during regex processing
Lorenzo Bettini <[email protected]> Thu, 22 Jun 2006 16:01:21 +0200
| Newsgroups | gmane.comp.gnu.source-highlight.general |
|---|---|
| Message-ID | <[email protected]> |
sorry, there was another bug :-( here are the (hopefully) fixed url.lang, and another test file Lorenzo Lorenzo Bettini wrote: > Adrian Reber wrote: > >> Hi, >> >> there has been a bug report about source-highlight in Fedora Extras. >> Does the following bug report sound familiar? >> >> https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=195720 >> > > Hi Adrian > > thanks for the link! > Indeed it's a problem with url.lang regular expressions. > > I think I fixed it now; I attach the fixed version and also a more > involved test example. > > I'll also answer in the bugzilla site > > thanks again > hope to hear from you soon > Lorenzo > > P.S. I'll soon release also the bug-fix in the next version of > source-highlight -- +-----------------------------------------------------+ | Lorenzo Bettini ICQ# lbetto, 16080134 | | PhD in Computer Science | | Dip. Sistemi e Informatica, Univ. di Firenze | | Florence - Italy (GNU/Linux User # 158233) | | Home Page : http://www.lorenzobettini.it | | http://music.dsi.unifi.it XKlaim language | | http://www.purplesucker.com Deep Purple Cover Band | | http://www.gnu.org/software/src-highlite | | http://www.gnu.org/software/gengetopt | | http://www.lorenzobettini.it/software/gengen | | http://www.lorenzobettini.it/software/doublecpp | +-----------------------------------------------------+ _______________________________________________ Help-source-highlight mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-source-highlight
main.c
(text/plain, 228 B)
/* _________________________________________________________________ ** _______ [email protected] _____ another_address.foo@bar_foo.it _________ ** Utility Functions ** fake.url.it ** http://www_foo */ int main() { return 0; }
url.lang
(text/plain, 120 B)
vardef URLPART = '[[:word:]\./\-_]+' url = '(<?)' + $URLPART + '@' + $URLPART + '(>?)' url = '[[:word:]]+://' + $URLPART