From 7bbd5ab5b31e17d64e736c10ab3af4476f3c3010 Mon Sep 17 00:00:00 2001 From: Ferdinand Majerech Date: Sat, 26 Jul 2014 02:29:27 +0200 Subject: [PATCH] Style. --- source/dyaml/scanner.d | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/source/dyaml/scanner.d b/source/dyaml/scanner.d index 0f74318..48311bd 100644 --- a/source/dyaml/scanner.d +++ b/source/dyaml/scanner.d @@ -1161,12 +1161,13 @@ final class Scanner return tagToken(startMark, reader_.mark, slice.utf32To8, handleEnd); } - ///Scan a block scalar token with specified style. - Token scanBlockScalar(const ScalarStyle style) @trusted pure + /// Scan a block scalar token with specified style. + Token scanBlockScalar(const ScalarStyle style) + @trusted pure { const startMark = reader_.mark; - //Scan the header. + // Scan the header. reader_.forward(); const indicators = scanBlockScalarIndicators(startMark); @@ -1177,9 +1178,10 @@ final class Scanner scanBlockScalarIgnoredLine(startMark); throwIfError(); - //Determine the indentation level and go to the first non-empty line. + // Determine the indentation level and go to the first non-empty line. Mark endMark; uint indent = max(1, indent_ + 1); + reader_.sliceBuilder.begin(); if(increment == int.min) { @@ -1199,7 +1201,7 @@ final class Scanner //Using appender_, so clear it when we're done. scope(exit){appender_.clear();} - //Scan the inner part of the block scalar. + // Scan the inner part of the block scalar. while(reader_.column == indent && reader_.peek() != '\0') { appender_.put(breaks);