Posted 19 years ago
by painetraine
![Avatar](https://secure.gravatar.com/avatar/5904c36eba4532ee20534390bd2348d7.jpg?s=64&d=identicon&r=g)
I am trying to define an empty patter group in the DefaultState, ie.
<ExplicitPatternGroup Token="UserCustomToken" Style="UserCustomStyle" LookAhead="{NonWordMacro}"/>
I basically want to leave the pattern empty and have it as a placeholder that I can load in patterns at runtime based off of user supplied information, in this case a database query to retrieve pattern items.
However, when I load the language it complains about not having any patterns. Is there a way to create a "placeholder" pattern group?
Thanks
<ExplicitPatternGroup Token="UserCustomToken" Style="UserCustomStyle" LookAhead="{NonWordMacro}"/>
I basically want to leave the pattern empty and have it as a placeholder that I can load in patterns at runtime based off of user supplied information, in this case a database query to retrieve pattern items.
However, when I load the language it complains about not having any patterns. Is there a way to create a "placeholder" pattern group?
Thanks