Hello everyone,
is it possible to control the order in which the IWikiSyntaxProvider
get_wiki_syntax() patterns are matched?
I'm trying to implement the following syntax rule:
r'\b[A-Z][a-zA-Z0-9]{0,5}-[1-9][0-9]{0,3}\b'
which would should match stuff like
Foo-123
BAR-4
DoO-1000
but fails for camel-case prefixes such as
FoBo-123
Since the 'FoBo' part is already handled by the built-in wiki syntax
provider regex rule.
Is there a way to define something like a syntax-rule (or
IWikiSyntaxProvider-wide) priority? And if not, would it be useful to
add such an optional property to the IWikiSyntaxProvider interface, to
allow plugins to shadow built-in syntax rules?
-- hvr.
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en.