diff --git a/source/dyaml/scanner.d b/source/dyaml/scanner.d index c766226..b9e20de 100644 --- a/source/dyaml/scanner.d +++ b/source/dyaml/scanner.d @@ -738,7 +738,7 @@ final class Scanner } /// 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. return reader_.column == 0 &&