595 Commits

Author SHA1 Message Date
ConnorSkees
33d486ccde Properly handle hsl value in color::other functions 2020-02-17 08:16:04 -05:00
ConnorSkees
f7aacba76c Use .remove() over .get() to avoid a clone 2020-02-17 08:13:15 -05:00
ConnorSkees
e7de93bd38 Proper error message for undefined variables 2020-02-17 07:55:03 -05:00
ConnorSkees
f550d820b0 change-color() hue error message 2020-02-16 22:49:19 -05:00
ConnorSkees
4040e3ad1c sat and lum in change color are scale: 2020-02-16 22:46:27 -05:00
ConnorSkees
86a0e24330 Proper bounds for change-color rgba 2020-02-16 22:35:02 -05:00
ConnorSkees
5ee5f59b2c Error messages for color::other functions 2020-02-16 22:30:29 -05:00
ConnorSkees
e5bbba3462 Take self by value in eval to avoid clone in common case 2020-02-16 22:06:30 -05:00
ConnorSkees
23b90aa97e Use remove() rather than .get() to avoid a clone 2020-02-16 22:04:54 -05:00
ConnorSkees
a44e52c7e3 Test for trailing comma in function args 2020-02-16 21:46:11 -05:00
ConnorSkees
95f8917d6c Uncomment meta function tests 2020-02-16 21:42:40 -05:00
ConnorSkees
8e0fdb8585 Test for named arg with value of variable 2020-02-16 21:38:29 -05:00
ConnorSkees
42cbd685d3 Refactor how function call args are parsed 2020-02-16 21:34:52 -05:00
ConnorSkees
c68a55327b Unquote empty string is null 2020-02-16 18:45:14 -05:00
ConnorSkees
3962c4410a Proper error messages for str-slice 2020-02-16 18:42:35 -05:00
ConnorSkees
09e4537e78 Proper error in str-slice when passed float 2020-02-16 18:39:27 -05:00
ConnorSkees
c9f7289670 Error messages for string functions 2020-02-16 18:32:13 -05:00
ConnorSkees
908104ec1c Properly implement percentage() error messages 2020-02-16 18:26:57 -05:00
ConnorSkees
af5c945dfa Return literal unit in StyleSheet::Display 2020-02-16 18:26:35 -05:00
ConnorSkees
26b0f2c998 Add max_args! to most functions 2020-02-16 18:18:57 -05:00
ConnorSkees
f081259b02 Refactor meta builtins 2020-02-16 18:15:56 -05:00
ConnorSkees
9626cbc55f Improved error messages for math functions 2020-02-16 18:10:56 -05:00
ConnorSkees
87579b181b clippy 2020-02-16 18:03:19 -05:00
ConnorSkees
f57da880b6 fmt 2020-02-16 17:49:37 -05:00
ConnorSkees
3e89a0a057 Handle numbers passed to saturate 2020-02-16 17:13:17 -05:00
ConnorSkees
d4dd360682 Handle number passed to invert() 2020-02-16 17:00:31 -05:00
ConnorSkees
948c489785 Properly implement weighted inversion 2020-02-16 16:53:28 -05:00
ConnorSkees
ca0e2d47cb Grayscale function behaves differently when given a number 2020-02-16 16:11:24 -05:00
ConnorSkees
96d29f45b8 Bounds check for fade_(in|out) 2020-02-16 16:03:22 -05:00
ConnorSkees
048ab562b2 more bounds checking 2020-02-16 15:34:21 -05:00
ConnorSkees
4238124344 fmt tests 2020-02-16 15:34:07 -05:00
ConnorSkees
3512873363 Properly print negative decimals 2020-02-16 15:30:31 -05:00
ConnorSkees
24dc99affe Include argument name in bounds error 2020-02-16 15:17:01 -05:00
ConnorSkees
5f59c71752 Bounds checking macro for builtin functions 2020-02-16 15:14:14 -05:00
ConnorSkees
fcb5069f82 Keep track of original values given from hsla() 2020-02-16 15:06:02 -05:00
ConnorSkees
2b3e2ce34c rustfmt 2020-02-16 15:03:28 -05:00
ConnorSkees
639fa99abc Split Color into HSLA and RGBA representations 2020-02-16 14:19:04 -05:00
ConnorSkees
cdf057f8d0 fmt tests 2020-02-16 12:44:02 -05:00
ConnorSkees
e886f5476b Properly conjugate 'arguments' when more than 1 is allowed 2020-02-16 12:39:48 -05:00
ConnorSkees
0aac40441d Put max_args! everywhere 2020-02-16 12:35:03 -05:00
ConnorSkees
46f2d4c47e Proper error messages for too many arguments 2020-02-16 12:31:09 -05:00
ConnorSkees
0e53318c9e Add named color transparent 2020-02-16 12:23:08 -05:00
ConnorSkees
089edee8af Proper errors for missing arguments 2020-02-16 12:17:34 -05:00
ConnorSkees
9a36c3be73 More builtin color function errors 2020-02-16 12:14:20 -05:00
ConnorSkees
1995b5ec6e Error messages in builtins 2020-02-16 11:59:04 -05:00
ConnorSkees
7c451e333e Arg errors for (de)saturate 2020-02-16 11:51:25 -05:00
ConnorSkees
92a7264f9a More error messages 2020-02-16 11:42:28 -05:00
ConnorSkees
4114bb0a78 rgb error messages 2020-02-16 11:37:27 -05:00
ConnorSkees
bbf0cd7e51 More error messages! 2020-02-16 11:28:36 -05:00
ConnorSkees
402d36133c Proper errors for $color 2020-02-16 11:17:57 -05:00