add test for comment in dictionary from #145

check that we correctly handle the case where a comment appears inside a dictionary, this was handled by commit 3084a9. use list internally to dictionary tokenizer to avoid interface performance penalties.
This commit is contained in:
Eliot Jones
2020-03-03 11:36:01 +00:00
parent 14599521f5
commit 4b5c8d510e
2 changed files with 34 additions and 1 deletions

View File

@@ -60,7 +60,7 @@
return true;
}
private static Dictionary<NameToken, IToken> ConvertToDictionary(IReadOnlyList<IToken> tokens)
private static Dictionary<NameToken, IToken> ConvertToDictionary(List<IToken> tokens)
{
var result = new Dictionary<NameToken, IToken>();