File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,9 @@ namespace Sass {
87
87
scanner.expect (" /*" );
88
88
while (true ) {
89
89
auto next = scanner.readChar ();
90
+ if (isNewline (next)) {
91
+ scanner._fail (" */" );
92
+ }
90
93
if (next != $asterisk) continue ;
91
94
92
95
do {
Original file line number Diff line number Diff line change @@ -31,8 +31,12 @@ namespace Sass {
31
31
strm << " Nothing may be indented " ;
32
32
if (name.empty ()) { strm << " here." ; }
33
33
else { strm << " beneath a " + name + " ." ; }
34
- scanWhitespaceWithoutComments ();
35
- error (strm.str (), scanner.rawSpan ());
34
+ Offset start (scanner.relevant );
35
+ while (uint32_t chr = scanner.peekChar ()) {
36
+ if (!isWhitespace (chr)) break ;
37
+ scanner.readChar ();
38
+ }
39
+ error (strm.str (), scanner.rawSpanFrom (start));
36
40
37
41
/* ,
38
42
position: nextIndentationEnd.position*/
You can’t perform that action at this time.
0 commit comments