Commit 2cd9715
Support using rulesets as default values of a mixin parameter
Fix parser error:
> could not understand value for named argument
> in detached-rulesets.less on line 105, column 24
Less.js creates Detached rulesets even for empty arrays.
The NameValue optimization was out of sync with parseRule(), failing
to remove its position from the stack. This meant that when a MixinCall
appears in the input, and the parser tries parseMixinDefinition (which
in turn tries parsePrimary/parseNameValue/parseRule), it would stay
"stuck" inside that parseMixinDefinition attempt instead of restoring
fully back to the top-level parsePrimary and trying a parseMixinCall.
Bug: T353143
Change-Id: Ifca743b916c53c7046bb7e764dcd0c16c0ebfcbb1 parent 01b647e commit 2cd9715
2 files changed
+4
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
1519 | | - | |
1520 | | - | |
1521 | | - | |
1522 | | - | |
1523 | | - | |
1524 | | - | |
1525 | | - | |
| 1519 | + | |
1526 | 1520 | | |
1527 | 1521 | | |
1528 | 1522 | | |
| |||
1899 | 1893 | | |
1900 | 1894 | | |
1901 | 1895 | | |
1902 | | - | |
1903 | | - | |
1904 | | - | |
| 1896 | + | |
| 1897 | + | |
1905 | 1898 | | |
1906 | | - | |
1907 | | - | |
1908 | 1899 | | |
1909 | 1900 | | |
1910 | 1901 | | |
| |||
1983 | 1974 | | |
1984 | 1975 | | |
1985 | 1976 | | |
1986 | | - | |
| 1977 | + | |
1987 | 1978 | | |
1988 | 1979 | | |
1989 | 1980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
0 commit comments