Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions src/prelexer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,15 @@ namespace Sass {
size_t level = 0;
bool in_squote = false;
bool in_dquote = false;
// bool in_braces = false;

while (*src) {

// check for abort condition
if (end && src >= end) break;
bool in_backslash_escape = false;

while ((end == nullptr || src < end) && *src != '\0') {
// has escaped sequence?
if (*src == '\\') {
++ src; // skip this (and next)
if (in_backslash_escape) {
in_backslash_escape = false;
}
else if (*src == '\\') {
in_backslash_escape = true;
}
else if (*src == '"') {
in_dquote = ! in_dquote;
Expand Down Expand Up @@ -120,7 +119,7 @@ namespace Sass {
// first start/opener must be consumed already!
template<prelexer start, prelexer stop>
const char* skip_over_scopes(const char* src) {
return skip_over_scopes<start, stop>(src, 0);
return skip_over_scopes<start, stop>(src, nullptr);
}

// Match a sequence of characters delimited by the supplied chars.
Expand Down