Commit Graph

66 Commits

Author SHA1 Message Date
Natalie Weizenbaum
9cd43fff02 Fix adjust-color(). 2016-10-19 23:09:03 -07:00
Natalie Weizenbaum
5d6ff2eadc Fix unit conversion in division. 2016-10-19 23:02:33 -07:00
Natalie Weizenbaum
87e03f17eb Properly cancel unknown units. 2016-10-19 18:53:57 -07:00
Natalie Weizenbaum
e4fd1beb7a Fix a number division bug. 2016-10-19 18:45:16 -07:00
Natalie Weizenbaum
13156d5107 Disable implicit downcasts. 2016-10-19 17:56:48 -07:00
Natalie Weizenbaum
870a2a4f4a Update number equality. 2016-10-18 21:39:29 -07:00
Natalie Weizenbaum
101904d26c Fix unquoted + quoted. 2016-10-18 20:34:03 -07:00
Natalie Weizenbaum
cf3cf07c93 Preserve units through unary minus. 2016-10-18 18:32:54 -07:00
Natalie Weizenbaum
2b2061f7e5 Treat empty unquoted strings as blank. 2016-10-18 17:53:40 -07:00
Natalie Weizenbaum
5b4348f8bf Fix broken type annotations. 2016-10-18 17:05:53 -07:00
Natalie Weizenbaum
4d54c5d351 Fix units for coercing number operations. 2016-10-18 16:48:42 -07:00
Natalie Weizenbaum
b5ccb26b9b Consider null blank. 2016-10-18 15:23:19 -07:00
Natalie Weizenbaum
e7024437d8 Use Ruby Sass string semantics. 2016-10-18 15:17:46 -07:00
Natalie Weizenbaum
286b24afca Fix number equality. 2016-10-18 14:26:52 -07:00
Natalie Weizenbaum
98f1c7dca3 Fix a unit conversion bug. 2016-10-17 17:42:19 -07:00
Natalie Weizenbaum
8969fc75f2 Store numbers' original values. 2016-10-17 16:50:43 -07:00
Natalie Weizenbaum
7f6c70f821 Add Value.toCssString(). 2016-10-16 19:01:23 -07:00
Natalie Weizenbaum
604fa597e5 InternalException -> SassScriptException 2016-10-16 18:46:38 -07:00
Natalie Weizenbaum
c41f2bb023 Properly serialize numbers. 2016-10-16 14:07:30 -07:00
Natalie Weizenbaum
441ca87f37 Way more API docs. 2016-10-15 02:57:29 -07:00
Natalie Weizenbaum
a3509e2947 Remove an outdated TODO. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
1a2bc5ffc9 Support calc-aware functions. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
ad1bbcc9bc Add comparable(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
69b61b1dc9 Fix unit stuff. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
216ffece4b Fix some map/list equivalence stuff. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
f7fbbb075a Add append(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
10d7da9d73 isBracketed -> hasBrackets
This is consistent with SassString.hasQuotes.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
7418b78902 Add nth(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
158ac11d43 Add TODOs for persistent data structures. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
8fd5818977 Add str-insert(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
7e0f642cd1 Use fuzzy rounding for consistency with Ruby Sass. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
3cbbe101f1 Add scale-color(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
fc4e6afad8 Add adjust-color(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
d2591122db Add adjust-hue(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
30df7507c8 Add hsl(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
dd85c34ae2 Use fuzzy comparisons for number operations.
Also implement ==, which apparently didn't exist for numbers yet.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
048d7cff33 Add mix(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
227329f9c3 Add rgba().
This also adds built-in function overloading. This adds some extra
layers to the default function-call logic which could be avoided by
handling overloading purely in the callbacks of functions that require
it, but it's not clear how to share logic gracefully between the perform
visitor and function helpers.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
5cc5bf1914 Add rgb(). 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
dd8a0efd66 Add an ArgumentList class. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
c9af638f54 Support for units 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
bacc1c4529 Unify strings and identifiers.
The separation makes sense conceptually, but it would make string
functions a lot harder to write.
2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
9ac48fbc05 Add support for binary operations. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
53635def75 Fix map serialization. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
efd336dd20 Support null. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
1832879845 Support @each 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
80f0afb484 Support @for. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
da1cef3f6f Move advanced list paren logic to serializer. 2016-09-30 12:41:41 -07:00
Natalie Weizenbaum
e2eb590ce6 Set precision to 10. 2016-08-30 15:51:23 -07:00
Natalie Weizenbaum
f1ce6ea599 Format all code. 2016-08-30 15:51:23 -07:00