aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common/src/ImlParsing/XmlSource.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-06-07 15:05:30 +0200
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-06-07 15:05:30 +0200
commit263de03914a3de5d55c4508c322e32d36caf2a87 (patch)
treec279464365fd7683744fa59d01b242e4b3ab17b9 /Samples/common/src/ImlParsing/XmlSource.cs
parentf738cf0f78c57750cce8fd5744825b0591f24bb8 (diff)
suggestion in IML editor, editor base classe for ShowCase and LogAnalyzerSimplifiedTabView
Diffstat (limited to 'Samples/common/src/ImlParsing/XmlSource.cs')
-rw-r--r--Samples/common/src/ImlParsing/XmlSource.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/Samples/common/src/ImlParsing/XmlSource.cs b/Samples/common/src/ImlParsing/XmlSource.cs
index f520dcf3..f70aec24 100644
--- a/Samples/common/src/ImlParsing/XmlSource.cs
+++ b/Samples/common/src/ImlParsing/XmlSource.cs
@@ -25,9 +25,10 @@ namespace Crow
syntaxAnalyser.Process ();
sw.Stop();
- foreach (Token t in Tokens)
+ /*foreach (Token t in Tokens)
Console.WriteLine ($"{t,-40} {Source.AsSpan(t.Start, t.Length).ToString()}");
- syntaxAnalyser.Root.Dump();
+ syntaxAnalyser.Root.Dump();*/
+
Console.WriteLine ($"Syntax Analysis done in {sw.ElapsedMilliseconds}(ms) {sw.ElapsedTicks}(ticks)");
foreach (SyntaxException ex in syntaxAnalyser.Exceptions)
Console.WriteLine ($"{ex}");
@@ -212,9 +213,13 @@ namespace Crow
case '\'':
case '"':
char q = reader.Read();
- if (reader.TryReadUntil (q))
+ addTok (ref reader, TokenType.AttributeValueOpen);
+ if (reader.TryReadUntil (q)) {
+ addTok (ref reader, TokenType.AttributeValue);
reader.Advance ();
- addTok (ref reader, TokenType.AttributeValue);
+ addTok (ref reader, TokenType.AttributeValueClose);
+ } else
+ addTok (ref reader, TokenType.AttributeValue);
break;
case '=':
reader.Advance();