Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Action plugins interacting with syntax sort order
Avatar
zioth #1
Member since Jul 2011 · 77 posts
Group memberships: Members
Show profile · Link to this post
Subject: Action plugins interacting with syntax sort order
The getSort() method of syntax plugins does a very nice job of keeping plugins from stepping on each other's toes. Without it, my autolink4 plugin would inject links into other plugins' content, but since I have a sort of 999, it works.

The problem is, DokuWiki has a limit to the number of syntax rules due to the way it combines regular expressions. Somewhere between 500 and 1000, it stops working. An enhancement I'm considering could bring this number into the thousands, or even tens of thousands.

I could create an action plugin to do all the substitutions I need more efficiently and without breaking the parser, but is there any way to avoid stepping on syntax plugins?

Or is there a way to do this with a syntax plugin? I'd have to be able to match arbitrary words and phrases. I guess my match could be something like '(?:\b\w+){1,10}' or something.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 07:05:10 (UTC +02:00)