Commit Graph

156 Commits

Author SHA1 Message Date
Natalie Weizenbaum
f1c23e7484 Rename "toCss" to "serialize"
This matches the filename and the name of the visitor.
2017-07-07 17:53:03 -07:00
Natalie Weizenbaum
970755d82e Rename "render" to "compile"
"Render" is a strange term for compilation that kind of got copied
over from Haml and endured due to inertia.
2017-07-07 17:53:03 -07:00
Natalie Weizenbaum
b4d1d95889 Don't use partially-extended selectors as parents. 2017-05-28 15:54:18 -07:00
Sam Rawlins
2fd9df9b2c Fix ArgumentDeclaration.toString() when no args except rest (#145) 2017-05-28 14:20:01 -07:00
Natalie Weizenbaum
2f1fbcde69 Extend compound selectors in parallel.
Rather than extending each selector individually and unifying them with
the un-extended rest, this extends everything in one step and unifies in
the next.
2017-05-27 17:47:34 -07:00
Natalie Weizenbaum
0e7ec951c3 Fix universal selector unification.
See sass/sass#2247
2017-05-27 17:47:34 -07:00
Natalie Weizenbaum
4243535941 Update the formatter version. 2017-05-27 17:18:13 -07:00
Natalie Weizenbaum
d4db75a8f9 Merge pull request #140 from sass/fixes
Fix a number of small bugs.
2017-05-19 18:59:17 -07:00
Natalie Weizenbaum
372ef02aa6 Fix a string inspection crash.
This was being triggered for parse errors, because we inspect the
selector expression when we generate the error.

Closes #134
2017-05-18 17:39:47 -07:00
Natalie Weizenbaum
7248cf0e27 Use real generic method syntax. 2017-05-18 17:11:32 -07:00
Natalie Weizenbaum
716157f4bc Drop support for the reference combinator. (#123) 2017-02-22 20:48:56 -08:00
Natalie Weizenbaum
31cc3fc521 Add a span to call()'s rest arguments. 2017-01-15 15:24:35 -08:00
Natalie Weizenbaum
c50563e0b4 Handle placeholders in selector pseudos. 2017-01-14 21:30:37 -08:00
Natalie Weizenbaum
146d24e28e Fix split media queries. 2017-01-14 20:09:34 -08:00
Natalie Weizenbaum
dbdd4d72d5 Support & in @at-root. 2017-01-14 13:39:00 -08:00
Natalie Weizenbaum
91b7178e2a Fix ID equality. (#99) 2017-01-13 16:26:03 -08:00
Natalie Weizenbaum
016fe59d1f Forbid extending across media queries. 2017-01-13 01:53:04 -08:00
Natalie Weizenbaum
3c7daa3499 Support interpolation in loud comments. 2017-01-08 22:47:05 -08:00
Natalie Weizenbaum
a7c6a1ad5b Fix String.asInterpolation().
We were checking if its contents was an Interpolation, when we should
have been checking for an Expression.
2017-01-06 17:45:34 -08:00
Natalie Weizenbaum
1d68c7a1c4 Fix selector equality. 2016-12-20 17:40:26 -08:00
Natalie Weizenbaum
b730e3f85c Support CSS import reordering. (#64) 2016-12-10 15:04:09 -08:00
Natalie Weizenbaum
2e0041d3c0 Don't disable placeholder unification.
I'm not sure why I made this fail in the first place.
2016-11-13 21:16:42 -08:00
Natalie Weizenbaum
8df94cc4ca Add support for Unicode ranges. (#42)
See sass/sass-spec#971
2016-11-13 13:26:52 -08:00
Natalie Weizenbaum
a7f5f4e4e8 Support the Microsoft-style = operator. (#40)
Closes #31
2016-11-12 21:21:18 -08:00
Natalie Weizenbaum
c5508cac89 Fix parent selector resolution. (#33)
If a child selector list contained one complex selector with & and one
without, the latter's parent wouldn't be added automatically.

Closes #28
2016-11-07 17:11:34 -08:00
Natalie Weizenbaum
bc5852f64d Support multiple @import arguments. 2016-10-29 10:58:56 -07:00
Natalie Weizenbaum
aec39904bc Clean up the output a bit.
This should match Ruby Sass's group logic.
2016-10-28 17:18:11 -07:00
Natalie Weizenbaum
868286911b Reparse media queries at perform-time. 2016-10-28 16:55:56 -07:00
Natalie Weizenbaum
be8b26191d Support import clauses. 2016-10-23 17:01:21 -07:00
Natalie Weizenbaum
a3142d526e Support reference combinators. 2016-10-21 21:21:30 -07:00
Natalie Weizenbaum
18cc8d3f66 Support keyframes. 2016-10-20 23:07:35 -07:00
Natalie Weizenbaum
271f899d3b Support slash numbers in lists. 2016-10-20 17:50:02 -07:00
Natalie Weizenbaum
7b4d26cc5a Properly parse indented-syntax empty selectors.
Also warn about them.
2016-10-20 14:35:45 -07:00
Natalie Weizenbaum
13156d5107 Disable implicit downcasts. 2016-10-19 17:56:48 -07:00
Natalie Weizenbaum
c8f0126f0b Support explicit @charset. 2016-10-18 16:22:42 -07:00
Natalie Weizenbaum
dd4a9165a2 Fix StringExpression.toInterpolation(). 2016-10-18 16:02:09 -07:00
Natalie Weizenbaum
5791e1425a StringExpression.toString(). 2016-10-18 15:52:23 -07:00
Natalie Weizenbaum
e7024437d8 Use Ruby Sass string semantics. 2016-10-18 15:17:46 -07:00
Natalie Weizenbaum
8969fc75f2 Store numbers' original values. 2016-10-17 16:50:43 -07:00
Natalie Weizenbaum
604fa597e5 InternalException -> SassScriptException 2016-10-16 18:46:38 -07:00
Natalie Weizenbaum
3e10e24341 Even more API docs. 2016-10-09 20:57:28 -07:00
Natalie Weizenbaum
3a0c5ce09c More API docs. 2016-10-09 16:36:36 -07:00
Natalie Weizenbaum
2289901df8 Support url() imports. 2016-10-07 14:05:54 -07:00
Natalie Weizenbaum
6c36a01d89 Support @else. 2016-10-07 14:05:29 -07:00
Natalie Weizenbaum
89e095d2c2 Add a bunch of API docs. 2016-09-30 18:42:41 -07:00
Natalie Weizenbaum
ea4a171198 Fix new analysis issues. 2016-09-30 16:41:22 -07:00
Natalie Weizenbaum
99c83a5834 Partial selector newline support.
In particular, newlines in selectors lists are now preserved during
parent selector resolution and emitted by the serializer. The output
matches Ruby Sass, but I'm not sure it's actually the best possible.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
98c5ffae9a Fix nested selector ordering. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
ae2ab6ec58 Remove outdated TODO. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
f460ebb2a9 Parse functions -> constructors 2016-09-30 12:41:41 -07:00