Fixed a bug in FastCharSearch.

Reader buffer is now manually allocated, decreasing GC workload
even further.
This commit is contained in:
Ferdinand Majerech 2011-10-25 00:16:43 +02:00
parent 97bdf819fa
commit 8b995e5061
3 changed files with 38 additions and 22 deletions

View file

@ -1363,7 +1363,7 @@ final class Scanner
{
//Instead of checking indentation, we check for document separators.
const prefix = reader_.prefix(3);
if((prefix == "---" || prefix == "...") &&
if((prefix == "---"d || prefix == "..."d) &&
" \t\0\n\r\u0085\u2028\u2029"d.canFind(reader_.peek(3)))
{
throw new Error("While scanning a quoted scalar", startMark,