Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit baaca2b

Browse files
committed
Fix sass white-space scanner
1 parent 6b470ff commit baaca2b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/parser.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ namespace Sass {
6868
}
6969

7070
// Consumes whitespace, but not comments.
71-
inline void scanWhitespaceWithoutComments()
71+
virtual void scanWhitespaceWithoutComments()
7272
{
7373
while (!scanner.isDone() && Character::isWhitespace(scanner.peekChar())) {
7474
scanner.readChar();

src/parser_sass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ namespace Sass {
317317
return SASS_MEMORY_NEW(LoudComment, std::move(pstate), itpl);
318318
}
319319

320-
void SassParser::scanWhitespace()
320+
void SassParser::scanWhitespaceWithoutComments()
321321
{
322322
// This overrides whitespace consumption so that
323323
// it doesn't consume newlines or loud comments.

src/parser_sass.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ namespace Sass {
116116
// that it doesn't consume multi-line comments.
117117
LoudComment* loudComment();
118118

119-
void scanWhitespace() override final;
119+
void scanWhitespaceWithoutComments() override final;
120120

121121
// Expect and consume a single newline character.
122122
void expectNewline();

0 commit comments

Comments
 (0)