mirror of
https://github.com/danog/dart-sass.git
synced 2024-11-27 04:34:59 +01:00
Disallow invalid function names.
This commit is contained in:
parent
06609e4551
commit
8d7a8c7e12
@ -1,5 +1,7 @@
|
||||
## 1.0.0-alpha.8
|
||||
|
||||
* Disallow invalid function names.
|
||||
|
||||
* Fix `@at-root` query parsing.
|
||||
|
||||
* Support special functions in `@-moz-document`.
|
||||
|
@ -559,6 +559,17 @@ abstract class StylesheetParser extends Parser {
|
||||
scanner.string);
|
||||
}
|
||||
|
||||
switch (unvendor(name)) {
|
||||
case "calc":
|
||||
case "element":
|
||||
case "expression":
|
||||
case "url":
|
||||
scanner.error("Invalid function name.",
|
||||
position: start.position,
|
||||
length: scanner.position - start.position);
|
||||
break;
|
||||
}
|
||||
|
||||
whitespace();
|
||||
var children = this.children(_functionAtRule);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user