Fixed a bug in FastCharSearch.
Reader buffer is now manually allocated, decreasing GC workload even further.
This commit is contained in:
parent
97bdf819fa
commit
8b995e5061
3 changed files with 38 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue