My app works with many different SQL dialects.
I define a separate Dynamic language file for each one.
My app needs to know what characters were defined for the Begin/End quotes around a quoted name.
For example, SQL Server uses [name] while Oracle uses "name".
In the example below I need to read the PatternValues specified for the TokenKey="StartQName" and TokenKey="EndQName"
<!-- Quoted Names -->
<State Key="QNameState" TokenKey="QNames" Style="NameStyle">
<!-- Scopes -->
<Scopes>
<Scope BracketHighlight="True">
<ExplicitPatternGroup Type="StartScope" TokenID="30" TokenKey="StartQName" PatternValue=""" />
<ExplicitPatternGroup Type="EndScope" TokenID="31" TokenKey="EndQName" PatternValue=""" />
</Scope>
</Scopes>
<!-- Patterns Groups -->
<PatternGroups>
<ExplicitPatternGroup TokenKey="QNameEscaped" PatternValue="""" />
<RegexPatternGroup TokenKey="QNameDefault" PatternValue="[^\"]+" />
</PatternGroups>
</State>
Looking at the methods available in the DynamicOutliningSyntaxLanguage class I thought I needed to use the GetTokenString(ID) function, but when I use that function it always returns Null.
How do I read a PatternValue from the language class?
Thanks
Mike