mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
ZoneCodeGenerator: Fix | not being a recognized token of the lexer
This commit is contained in:
parent
2215fef883
commit
8d4e4c0025
@ -35,7 +35,8 @@ namespace ZoneCodeGenerator.Parsing.Impl
|
||||
'+',
|
||||
'-',
|
||||
'/',
|
||||
'\\'
|
||||
'\\',
|
||||
'|'
|
||||
};
|
||||
|
||||
private readonly IParsingFileStream fileStream;
|
||||
|
@ -65,6 +65,7 @@ namespace ZoneCodeGeneratorTests.Parsing.Impl
|
||||
"word1-word2- word3 - word4 -word5",
|
||||
"word1/word2/ word3 / word4 /word5",
|
||||
"word1\\word2\\ word3 \\ word4 \\word5",
|
||||
"word1|word2| word3 | word4 |word5",
|
||||
});
|
||||
|
||||
AssertTokenOutput("word1", ";", "word2", ";", "word3", ";", "word4", ";", "word5");
|
||||
@ -90,6 +91,7 @@ namespace ZoneCodeGeneratorTests.Parsing.Impl
|
||||
AssertTokenOutput("word1", "-", "word2", "-", "word3", "-", "word4", "-", "word5");
|
||||
AssertTokenOutput("word1", "/", "word2", "/", "word3", "/", "word4", "/", "word5");
|
||||
AssertTokenOutput("word1", "\\", "word2", "\\", "word3", "\\", "word4", "\\", "word5");
|
||||
AssertTokenOutput("word1", "|", "word2", "|", "word3", "|", "word4", "|", "word5");
|
||||
|
||||
Assert.IsTrue(lexer.IsEndOfStream);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user