File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change 1
1
## 1.23.5
2
2
3
+ * Support inline comments in the indented syntax.
4
+
3
5
* When an overloaded function receives the wrong number of arguments, guess
4
6
which overload the user actually meant to invoke, and display the invalid
5
7
argument error for that overload.
Original file line number Diff line number Diff line change @@ -309,17 +309,29 @@ class SassParser extends StylesheetParser {
309
309
return LoudComment (buffer.interpolation (scanner.spanFrom (start)));
310
310
}
311
311
312
- void whitespace () {
313
- // This overrides whitespace consumption so that it doesn't consume newlines
314
- // or loud comments .
312
+ void whitespaceWithoutComments () {
313
+ // This overrides whitespace consumption so that it doesn't consume
314
+ // newlines .
315
315
while (! scanner.isDone) {
316
316
var next = scanner.peekChar ();
317
317
if (next != $tab && next != $space) break ;
318
318
scanner.readChar ();
319
319
}
320
+ }
320
321
321
- if (scanner.peekChar () == $slash && scanner.peekChar (1 ) == $slash) {
322
- silentComment ();
322
+ void loudComment () {
323
+ // This overrides loud comment consumption so that it doesn't consume
324
+ // multi-line comments.
325
+ scanner.expect ("/*" );
326
+ while (true ) {
327
+ var next = scanner.readChar ();
328
+ if (isNewline (next)) scanner.error ("expected */." );
329
+ if (next != $asterisk) continue ;
330
+
331
+ do {
332
+ next = scanner.readChar ();
333
+ } while (next == $asterisk);
334
+ if (next == $slash) break ;
323
335
}
324
336
}
325
337
Original file line number Diff line number Diff line change 1
1
name : sass
2
- version : 1.23.5-dev
2
+ version : 1.23.5
3
3
description : A Sass implementation in Dart.
4
4
author : Sass Team
5
5
homepage : https://github.com/sass/dart-sass
You can’t perform that action at this time.
0 commit comments