Hello,
I am stuсk with creating a State group in a dynamic language definition that should parse the following multiline string definition:
"line0 \
line1 \
line2"
This is C++ multiline string.
I have tried to modify C# example of multiline (see the code below) but with no luck.Any help is appreciated.
Marina
I am stuсk with creating a State group in a dynamic language definition that should parse the following multiline string definition:
"line0 \
line1 \
line2"
This is C++ multiline string.
I have tried to modify C# example of multiline (see the code below) but with no luck.
<State Key="VerbatimStringState" TokenKey="VerbatimStringDefaultToken" Style="StringDefaultStyle">
<!-- Scopes -->
<Scopes>
<Scope>
<ExplicitPatternGroup Type="StartScope" TokenKey="VerbatimStringStartToken" Style="StringDelimiterStyle" PatternValue="@"" />
<ExplicitPatternGroup Type="EndScope" TokenKey="VerbatimStringEndToken" Style="StringDelimiterStyle" PatternValue="[\]|["]" LookAhead="[\s]*\n"/>
</Scope>
</Scopes>
<!-- Patterns Groups -->
<PatternGroups>
<ExplicitPatternGroup TokenKey="VerbatimStringEscapedQuoteToken" PatternValue="""" />
<RegexPatternGroup TokenKey="VerbatimStringWhitespaceToken" PatternValue="{WhitespaceMacro}+" IsWhitespace="True" />
<RegexPatternGroup TokenKey="VerbatimStringWordToken" PatternValue="\w+" />
<RegexPatternGroup TokenKey="VerbatimStringWordToken1" PatternValue="[\\][\n\r]" />
<RegexPatternGroup TokenKey="VerbatimStringDefaultToken" PatternValue="[^\"]" />
</PatternGroups>
</State>
Marina