[pmwiki-users] Markup function bug or feature?

Patrick R. Michaud pmichaud at pobox.com
Wed Aug 17 20:37:46 CDT 2005


On Thu, Aug 18, 2005 at 09:30:25AM +1200, John Rankin wrote:
> Trying to solve a problem led me to the following discovery:
> 
> Suppose the same markup rule is defined twice:
> 
> Markup('rulex','sequence1','pattern1','replacement1');
> 
> intervening code
> 
> Markup('rulex','sequence2','pattern2','replacement2');
> 
> As we know, pattern1 takes precedence over pattern2.
> 
> As I eventually discovered, sequence2 takes precedence over sequence1.
> 
> Is this a bug or a feature?

Neither.  Either.  Both.  

It's just an artifact of the current implementation; I didn't have
any examples handy to provide guidance as to what should happen,
so I just went with what seemed to make the implementation easiest.

Pm





More information about the pmwiki-users mailing list