[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Pattern matching
- From: Gavin Wraith <gavin@...>
- Date: Wed, 14 Mar 2001 00:03:50 +0000 (GMT)
This is an appeal for help with pattern matching. I appreciate
that one can ask too much of the pattern matching provided
in stringlib, and that for things like syntax colouring one
really needs a full-blooded parser. However, maybe there are
some wizards out there who can save me a lot of mental effort.
How do I specify a pattern for a Lua keyword?
How do I say that either the keyword begins a line or is
preceded by a character matching [^%w_], and that either
it ends a line or is followed by a character matching [^%w_],
It would be useful to have a little dictionary of useful
patterns on the Lua website.
Gavin Wraith (email@example.com) or (firstname.lastname@example.org)
Home page: http://www.wraith.u-net.com/