checkDocumentStart func attribs.
This commit is contained in:
parent
d5663b1e57
commit
2e7de5f9ed
|
@ -738,7 +738,7 @@ final class Scanner
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Check if the next token is DOCUMENT-START: ^ '---' (' '|'\n')
|
/// Check if the next token is DOCUMENT-START: ^ '---' (' '|'\n')
|
||||||
bool checkDocumentStart() @safe
|
bool checkDocumentStart() @safe pure nothrow @nogc
|
||||||
{
|
{
|
||||||
// Check one char first, then all 3, to prevent reading outside the buffer.
|
// Check one char first, then all 3, to prevent reading outside the buffer.
|
||||||
return reader_.column == 0 &&
|
return reader_.column == 0 &&
|
||||||
|
|
Loading…
Reference in a new issue