Commit Graph

  • c2e339fb5b Remove inner _parse_interpolation() ConnorSkees 2020-02-24 17:08:49 -05:00
  • a645424186 Refactor handling of quotes inside interpolation ConnorSkees 2020-02-24 16:58:48 -05:00
  • 54e71130e7 Strings containing interpolation are double quoted ConnorSkees 2020-02-24 15:18:53 -05:00
  • 011577c9f6 test for interpolation in attribute selectors ConnorSkees 2020-02-24 15:10:30 -05:00
  • 4c32d97971 remove comment ConnorSkees 2020-02-24 15:10:15 -05:00
  • 9877f4a0e0 Attribute selectors are parsed after lexing ConnorSkees 2020-02-24 15:07:18 -05:00
  • 404c7fb66a Various tests ConnorSkees 2020-02-24 09:38:05 -05:00
  • 776e6444e6 rustfmt ConnorSkees 2020-02-24 09:37:32 -05:00
  • e8ee76f7dc Properly parse single quoted strings and string interpolation ConnorSkees 2020-02-24 09:36:17 -05:00
  • 4c3f5e24ee Handle utf8 input (a bit) ConnorSkees 2020-02-23 07:52:14 -05:00
  • ef4a9e9ded Strings can start with # and don't have to be colors ConnorSkees 2020-02-23 07:41:00 -05:00
  • dff4798a68 Better mixin parsing error message ConnorSkees 2020-02-23 07:32:40 -05:00
  • 023bc647bd Properly handle trailing commas combined with newlines ConnorSkees 2020-02-22 18:33:42 -05:00
  • 53861ccb0d clippy ConnorSkees 2020-02-22 17:57:13 -05:00
  • 4ee9cc72a6 Preserve newlines after , in selectors ConnorSkees 2020-02-22 17:26:30 -05:00
  • 686c3f0a51 Remove extraneous selector display tests ConnorSkees 2020-02-22 17:11:12 -05:00
  • bf0ce2fe1a Correctly print whitespace when no params in at rule ConnorSkees 2020-02-22 17:09:15 -05:00
  • 260b357bba Test for unknown at rules ConnorSkees 2020-02-22 17:08:58 -05:00
  • 735f222e15 Style namespaces can have variables come before them ConnorSkees 2020-02-22 16:41:10 -05:00
  • a3b260c0bd Allow nested unknown @ rules ConnorSkees 2020-02-22 15:34:32 -05:00
  • a6cc86e4db Create tests for media queries ConnorSkees 2020-02-22 13:03:02 -05:00
  • 8c227290a0 Flatten whitespace in media query ConnorSkees 2020-02-22 12:56:23 -05:00
  • d1d636fa17 Trim whitespace from media query ConnorSkees 2020-02-22 12:53:58 -05:00
  • 71b4729613 Toplevel unknown at rules ConnorSkees 2020-02-22 12:00:32 -05:00
  • c8e3462e74 placeholder for unknown at rules in Display ConnorSkees 2020-02-22 12:00:07 -05:00
  • a4cd8ae02c rustfmt ConnorSkees 2020-02-22 11:59:33 -05:00
  • e6120a0f59 Properly convert unknown at rules to css ConnorSkees 2020-02-22 11:59:16 -05:00
  • d114509464 Parse and construct unknown at rules ConnorSkees 2020-02-22 11:58:30 -05:00
  • cacf8c41ab Implement Selector::new() utility function ConnorSkees 2020-02-22 10:25:30 -05:00
  • 2c38db8703 2020-02-18 tests ConnorSkees 2020-02-18 07:09:12 -05:00
  • fa665ae55f color addition is undefined ConnorSkees 2020-02-17 10:39:32 -05:00
  • 844b506872 Value operations can fail ConnorSkees 2020-02-17 10:27:04 -05:00
  • 0e2e5cb8bc Add period to mixin error message ConnorSkees 2020-02-17 10:02:44 -05:00
  • af4917a4e6 correct regression in toplevel & error message ConnorSkees 2020-02-17 09:47:14 -05:00
  • 85a2c8eaeb Better error for missing identifier after : in selector ConnorSkees 2020-02-17 09:40:30 -05:00
  • bb16060ddb rustfmt ConnorSkees 2020-02-17 09:37:34 -05:00
  • 36ec80e0da Use .remove() over .get() to avoid clone ConnorSkees 2020-02-17 09:33:52 -05:00
  • 585011c621 Remove unwrap from FuncArgs ConnorSkees 2020-02-17 09:28:25 -05:00
  • dbe73fc2ac rustfmt ConnorSkees 2020-02-17 09:23:24 -05:00
  • eab0049566 Use SassError in more places ConnorSkees 2020-02-17 09:22:41 -05:00
  • 64fbc96d9d Form feed is whitespace ConnorSkees 2020-02-17 09:09:31 -05:00
  • af443f8f57 Prefer .remove() over .get() to avoid clone ConnorSkees 2020-02-17 09:08:28 -05:00
  • 33d486ccde Properly handle hsl value in color::other functions ConnorSkees 2020-02-17 08:16:04 -05:00
  • f7aacba76c Use .remove() over .get() to avoid a clone ConnorSkees 2020-02-17 08:13:15 -05:00
  • e7de93bd38 Proper error message for undefined variables ConnorSkees 2020-02-17 07:18:54 -05:00
  • f550d820b0 change-color() hue error message ConnorSkees 2020-02-16 22:49:19 -05:00
  • 4040e3ad1c sat and lum in change color are scale: ConnorSkees 2020-02-16 22:43:44 -05:00
  • 86a0e24330 Proper bounds for change-color rgba ConnorSkees 2020-02-16 22:35:02 -05:00
  • 5ee5f59b2c Error messages for color::other functions ConnorSkees 2020-02-16 22:30:29 -05:00
  • e5bbba3462 Take self by value in eval to avoid clone in common case ConnorSkees 2020-02-16 22:06:30 -05:00
  • 23b90aa97e Use remove() rather than .get() to avoid a clone ConnorSkees 2020-02-16 22:04:54 -05:00
  • a44e52c7e3 Test for trailing comma in function args ConnorSkees 2020-02-16 21:46:11 -05:00
  • 95f8917d6c Uncomment meta function tests ConnorSkees 2020-02-16 21:42:40 -05:00
  • 8e0fdb8585 Test for named arg with value of variable ConnorSkees 2020-02-16 21:38:29 -05:00
  • 42cbd685d3 Refactor how function call args are parsed ConnorSkees 2020-02-16 21:34:52 -05:00
  • c68a55327b Unquote empty string is null ConnorSkees 2020-02-16 18:45:14 -05:00
  • 3962c4410a Proper error messages for str-slice ConnorSkees 2020-02-16 18:42:35 -05:00
  • 09e4537e78 Proper error in str-slice when passed float ConnorSkees 2020-02-16 18:39:27 -05:00
  • c9f7289670 Error messages for string functions ConnorSkees 2020-02-16 18:32:13 -05:00
  • 908104ec1c Properly implement percentage() error messages ConnorSkees 2020-02-16 18:26:57 -05:00
  • af5c945dfa Return literal unit in StyleSheet::Display ConnorSkees 2020-02-16 18:26:35 -05:00
  • 26b0f2c998 Add max_args! to most functions ConnorSkees 2020-02-16 18:18:57 -05:00
  • f081259b02 Refactor meta builtins ConnorSkees 2020-02-16 18:15:56 -05:00
  • 9626cbc55f Improved error messages for math functions ConnorSkees 2020-02-16 18:10:56 -05:00
  • 87579b181b clippy ConnorSkees 2020-02-16 18:03:19 -05:00
  • f57da880b6 fmt ConnorSkees 2020-02-16 17:49:34 -05:00
  • 3e89a0a057 Handle numbers passed to saturate ConnorSkees 2020-02-16 17:13:17 -05:00
  • d4dd360682 Handle number passed to invert() ConnorSkees 2020-02-16 17:00:31 -05:00
  • 948c489785 Properly implement weighted inversion ConnorSkees 2020-02-16 16:53:28 -05:00
  • ca0e2d47cb Grayscale function behaves differently when given a number ConnorSkees 2020-02-16 16:11:24 -05:00
  • 96d29f45b8 Bounds check for fade_(in|out) ConnorSkees 2020-02-16 16:03:22 -05:00
  • 048ab562b2 more bounds checking ConnorSkees 2020-02-16 15:34:21 -05:00
  • 4238124344 fmt tests ConnorSkees 2020-02-16 15:34:07 -05:00
  • 3512873363 Properly print negative decimals ConnorSkees 2020-02-16 15:20:38 -05:00
  • 24dc99affe Include argument name in bounds error ConnorSkees 2020-02-16 15:17:01 -05:00
  • 5f59c71752 Bounds checking macro for builtin functions ConnorSkees 2020-02-16 15:14:14 -05:00
  • fcb5069f82 Keep track of original values given from hsla() ConnorSkees 2020-02-16 15:06:02 -05:00
  • 2b3e2ce34c rustfmt ConnorSkees 2020-02-16 15:03:28 -05:00
  • 639fa99abc Split Color into HSLA and RGBA representations ConnorSkees 2020-02-16 14:19:04 -05:00
  • cdf057f8d0 fmt tests ConnorSkees 2020-02-16 12:44:02 -05:00
  • e886f5476b Properly conjugate 'arguments' when more than 1 is allowed ConnorSkees 2020-02-16 12:39:48 -05:00
  • 0aac40441d Put max_args! everywhere ConnorSkees 2020-02-16 12:35:03 -05:00
  • 46f2d4c47e Proper error messages for too many arguments ConnorSkees 2020-02-16 12:31:09 -05:00
  • 0e53318c9e Add named color transparent ConnorSkees 2020-02-16 12:23:08 -05:00
  • 089edee8af Proper errors for missing arguments ConnorSkees 2020-02-16 12:17:34 -05:00
  • 9a36c3be73 More builtin color function errors ConnorSkees 2020-02-16 12:14:20 -05:00
  • 1995b5ec6e Error messages in builtins ConnorSkees 2020-02-16 11:59:04 -05:00
  • 7c451e333e Arg errors for (de)saturate ConnorSkees 2020-02-16 11:47:15 -05:00
  • 92a7264f9a More error messages ConnorSkees 2020-02-16 11:42:28 -05:00
  • 4114bb0a78 rgb error messages ConnorSkees 2020-02-16 11:33:13 -05:00
  • bbf0cd7e51 More error messages! ConnorSkees 2020-02-16 11:28:36 -05:00
  • 402d36133c Proper errors for $color ConnorSkees 2020-02-16 11:15:00 -05:00
  • b4ea8913f0 HSLA errors (experimental) ConnorSkees 2020-02-16 11:12:17 -05:00
  • 627e326ac5 Refactor error messages to not have quotes ConnorSkees 2020-02-16 11:10:03 -05:00
  • f817598a9d Refactor error handling ConnorSkees 2020-02-16 10:54:25 -05:00
  • 6d0686866e hsla doesn't care about units ConnorSkees 2020-02-16 10:28:33 -05:00
  • cc372f4e65 Reexport SassResult ConnorSkees 2020-02-16 10:28:15 -05:00
  • 042c5f4f2f Null should not be preserved ConnorSkees 2020-02-16 10:27:51 -05:00
  • d300cd046a Use SassError over Option inside builtins ConnorSkees 2020-02-16 10:14:17 -05:00
  • ff0b05d74a Refactor SassError to live inside error module ConnorSkees 2020-02-16 10:08:45 -05:00