Commit Graph

  • 45508a7665 add support for unicode ranges Connor Skees 2020-08-11 14:46:06 -04:00
  • 5133d580de improve error message for selector-parse and deny open curly brace Connor Skees 2020-08-11 02:00:10 -04:00
  • 0c7e2017d5 use patched version of peekmore Connor Skees 2020-08-08 21:38:59 -04:00
  • fb785cf71c revert "make predicate optional for callers" Connor Skees 2020-08-08 14:36:59 -04:00
  • fda7f340ce make predicate optional for callers Connor Skees 2020-08-08 02:27:54 -04:00
  • a9bef0e24e more robustly parse default function arguments Connor Skees 2020-08-08 01:57:56 -04:00
  • a3a21928c0 resolve map parsing regression involving trailing commas in doubly nested maps Connor Skees 2020-08-07 20:10:49 -04:00
  • 56030f1292 recognize plain css @imports beginning with // Connor Skees 2020-08-07 17:44:51 -04:00
  • 36bdea138d refactor how the from value in @for is parsed Connor Skees 2020-08-07 17:33:30 -04:00
  • fac8b86a6a resolve integer underflow in @for when both to and from and i32::MIN Connor Skees 2020-08-07 16:51:17 -04:00
  • f33739aa0f add more tests for malformed @for Connor Skees 2020-08-07 16:21:15 -04:00
  • 38a37a3997 more robustly parse !optional in selectors Connor Skees 2020-08-07 13:40:22 -04:00
  • 36a55e582c use consume_char_if_exists to simplify parsing Connor Skees 2020-08-07 13:07:28 -04:00
  • 1f14bc92e3 refactor parsing of parens using predicate Connor Skees 2020-08-07 13:00:55 -04:00
  • be032b66f0 refactor parsing of media queries to use predicate parsing Connor Skees 2020-08-07 12:04:37 -04:00
  • d5b2410a8c allow multiline comments in more contexts Connor Skees 2020-08-07 11:39:14 -04:00
  • 484409761d
    implement @use and the module system Connor Skees 2020-08-07 02:36:07 -04:00
  • 882c84c2d8 remove @use from remaining features Connor Skees 2020-08-07 02:26:59 -04:00
  • 10b333f663 update newly passing tests from module system Connor Skees 2020-08-07 02:24:17 -04:00
  • 399fe1d99e rustfmt Connor Skees 2020-08-07 02:12:13 -04:00
  • 7a4a191d59 allow variable declarations before and between @use Connor Skees 2020-08-07 02:10:51 -04:00
  • a7ccb4d6d3 move module variable parsing to module file Connor Skees 2020-08-07 02:03:43 -04:00
  • 438abe52be allow redeclaration of module variables Connor Skees 2020-08-07 02:01:04 -04:00
  • bb0b352af2 move module parsing to separate file Connor Skees 2020-08-06 22:05:50 -04:00
  • cacf605af8 respect $with argument to load-css Connor Skees 2020-08-06 21:58:53 -04:00
  • 0254517095 refactor errors using Parser::expect_char Connor Skees 2020-08-06 21:36:11 -04:00
  • 074d679cbd support the @use ... with (...) syntax Connor Skees 2020-08-06 21:00:34 -04:00
  • 94becb4dcb implement idempotency with regard to module aliasing Connor Skees 2020-08-06 04:00:45 -04:00
  • de9571b3fe remove allows from modules Connor Skees 2020-08-06 03:53:18 -04:00
  • d029fd2001 implement module mixins and meta.load-css Connor Skees 2020-08-06 03:46:58 -04:00
  • d043167015 Merge branch 'master' of https://github.com/connorskees/grass into modules Connor Skees 2020-08-06 01:23:09 -04:00
  • 8fabda6363 use back() rather than indexing at len - 1 Connor Skees 2020-08-05 03:22:54 -04:00
  • 61ef52eb3f replace .get(0) with .first() Connor Skees 2020-08-05 03:09:10 -04:00
  • df1456f9b1 use new predicate parsing for bracketed lists Connor Skees 2020-08-05 03:03:58 -04:00
  • b2e7270681 resolve panic when extending certain psuedo selectors containing combinators without rhs selector Connor Skees 2020-08-04 23:18:16 -04:00
  • 5c8e88d16b remove panic on malformed bracketed list Connor Skees 2020-08-04 02:18:48 -04:00
  • 9c2d1200f7 allow multiline comments in functions Connor Skees 2020-08-04 02:13:15 -04:00
  • a79c62c2fa allow escaped ! in selectors Connor Skees 2020-08-04 02:05:59 -04:00
  • 55bcd1d1dd resolve panic from malformed filter argument Connor Skees 2020-08-04 01:35:49 -04:00
  • 622d44ac63 disallow selectors and styles in functions Connor Skees 2020-08-03 01:18:00 -04:00
  • 3e5f69118b disallow more at-rules in @function Connor Skees 2020-08-02 23:00:00 -04:00
  • 2df5e1b274 resolve panic on malformed args missing closing parenthesis Connor Skees 2020-08-02 22:24:37 -04:00
  • 835aa34dee Merge branch 'master' of https://github.com/connorskees/grass into modules Connor Skees 2020-08-02 15:58:16 -04:00
  • 74dad6af0c allow whitespace after multiline comment in named args Connor Skees 2020-08-02 15:57:58 -04:00
  • 5efe99a404 resolve merge conflicts with master Connor Skees 2020-08-02 15:11:59 -04:00
  • 4a9c200a7e remove alpha from get_by_name Ivan Tham 2020-08-01 16:51:21 +08:00
  • c5814a4a06 refactor parser return Ivan Tham 2020-08-01 16:51:07 +08:00
  • edec89093b use phf for named rgba map hashing Ivan Tham 2020-08-01 12:12:37 +08:00
  • 45476b8a75 elide lifetime for Default Options impl Ivan Tham 2020-08-01 12:12:21 +08:00
  • db41737ec7 hue can never be exactly 360 Connor Skees 2020-08-02 15:03:26 -04:00
  • 6189810ced allow vendor prefixed special css functions Connor Skees 2020-08-02 14:52:46 -04:00
  • 698339b8c7 initial implementation of private module members Connor Skees 2020-08-02 04:20:08 -04:00
  • a9e4d5cba5 implement builtin function math.atan2 Connor Skees 2020-08-02 00:42:24 -04:00
  • 28701b2707 Merge branch 'master' of https://github.com/connorskees/grass into modules Connor Skees 2020-08-01 15:12:24 -04:00
  • d68ffd6510 remove alpha from get_by_name Ivan Tham 2020-08-01 16:51:21 +08:00
  • 00aeacbc74 refactor parser return Ivan Tham 2020-08-01 16:51:07 +08:00
  • 7fe3abc625 use phf for named rgba map hashing Ivan Tham 2020-08-01 12:12:37 +08:00
  • ed85ad55a2 elide lifetime for Default Options impl Ivan Tham 2020-08-01 12:12:21 +08:00
  • dbe7f2d50b use Unit rather than string as key to unit conversion map Connor Skees 2020-08-01 14:33:22 -04:00
  • 8bd14e0e86 implement builtin function math.hypot Connor Skees 2020-07-31 14:05:00 -04:00
  • 123ed80e9a resolve merge conflicts with master Connor Skees 2020-07-31 17:37:00 -04:00
  • da3c3eabfc refactor how @content scoping is handled Connor Skees 2020-07-30 23:40:34 -04:00
  • da9c0b78b2 variables declared in mixins can be accessed after @content Connor Skees 2020-07-30 22:26:24 -04:00
  • a8046b0d83 respect $module argument to global-variable-exists Connor Skees 2020-07-30 18:52:16 -04:00
  • cfd2e00ebb respect $module argument to mixin-exists Connor Skees 2020-07-30 18:35:34 -04:00
  • a7325436ca respect $module argument to get-function Connor Skees 2020-07-30 17:46:56 -04:00
  • a03ad51b71 allow @use of user-defined modules Connor Skees 2020-07-30 17:21:32 -04:00
  • af9864ff85 resolve clippy lint for is_ms_filter Connor Skees 2020-07-30 16:42:08 -04:00
  • 80986efee9
    refactor is_ms_filter Ivan Tham 2020-07-31 04:39:06 +08:00
  • 8c1cde8a61 implement builtin function math.pow Connor Skees 2020-07-29 18:13:37 -04:00
  • 2fb19e161e resolve newly failing tests from merge Connor Skees 2020-07-29 08:58:21 -04:00
  • a8ec130f64 resolve merge conflict with master Connor Skees 2020-07-29 08:38:13 -04:00
  • f587a36367 fix regression involving min and max inside color functions Connor Skees 2020-07-29 08:27:53 -04:00
  • be027c8105 Merge branch 'master' of https://github.com/connorskees/grass into modules Connor Skees 2020-07-29 07:32:12 -04:00
  • 6beb95ece0 fix @keyframes test failing from typo Connor Skees 2020-07-29 07:31:58 -04:00
  • 734e0875da resolve merge conflicts with master Connor Skees 2020-07-29 07:30:20 -04:00
  • e0cecb4e5c allow @keyframes to have vendor prefixes and decimal selectors Connor Skees 2020-07-29 07:18:47 -04:00
  • 627bd62bb9 ignore more Sass frameworks Connor Skees 2020-07-29 07:24:52 -04:00
  • 6631b8ae0e correctly parse the function filter syntax Connor Skees 2020-07-28 18:09:23 -04:00
  • ace9757897 use a predicate to simplify and improve parsing of maps Connor Skees 2020-07-28 01:59:43 -04:00
  • f69b863e33 better handle silent comments in maps and fn args Connor Skees 2020-07-27 22:09:38 -04:00
  • d6a1d64dcb implement @use ... as *; syntax Connor Skees 2020-07-27 18:55:38 -04:00
  • 36d7b5d920 implement builtin function meta.module-variables Connor Skees 2020-07-27 18:06:00 -04:00
  • 2b9cad5971 implement builtin function meta.module-functions Connor Skees 2020-07-27 17:58:29 -04:00
  • f63b254367 refactor math.acos implementation Connor Skees 2020-07-27 15:30:57 -04:00
  • 717cdd9501 adjust-hue is not included in the module system Connor Skees 2020-07-27 02:03:56 -04:00
  • 458fcf0fd8 implement builtin function math.log Connor Skees 2020-07-27 01:52:34 -04:00
  • 313913734a tests for math.asin and math.atan Connor Skees 2020-07-27 00:07:29 -04:00
  • a3e6607394 tests for cos, sin, tan, and acos Connor Skees 2020-07-26 23:45:29 -04:00
  • fbcee00bdd allow NaN to take units and refactor math.acos Connor Skees 2020-07-26 23:45:00 -04:00
  • 78da4ad2fe use macro to simplify declaration of trig fns Connor Skees 2020-07-26 22:15:28 -04:00
  • e67b0dc440 implement builtin math functions sin, tan, acos, asin, and atan Connor Skees 2020-07-26 22:11:19 -04:00
  • eee5eeb826 implement builtin function math.cos Connor Skees 2020-07-26 22:04:07 -04:00
  • 2265e7eb74 implement builtin function math.sqrt Connor Skees 2020-07-26 21:22:10 -04:00
  • 53cf2816e0 use None to represent NaN Connor Skees 2020-07-26 19:38:41 -04:00
  • dbfa691505 resolve clippy lints Connor Skees 2020-07-26 13:49:13 -04:00
  • ee57cda9c5 give better error messages for undefined modules and functions Connor Skees 2020-07-26 13:44:30 -04:00
  • 0916dcc5bd support the @use ... as ...; syntax Connor Skees 2020-07-26 13:36:01 -04:00
  • eeb0b0a924 implement builtin sass:math function clamp Connor Skees 2020-07-26 13:12:35 -04:00
  • 3fae0a9621 alias sass:color builtin functions Connor Skees 2020-07-26 00:58:09 -04:00