319 Commits

Author SHA1 Message Date
Connor Skees
38a37a3997 more robustly parse !optional in selectors 2020-08-07 13:40:22 -04:00
Connor Skees
36a55e582c use consume_char_if_exists to simplify parsing 2020-08-07 13:07:28 -04:00
Connor Skees
1f14bc92e3 refactor parsing of parens using predicate 2020-08-07 13:01:58 -04:00
Connor Skees
be032b66f0 refactor parsing of media queries to use predicate parsing 2020-08-07 12:04:43 -04:00
Connor Skees
d5b2410a8c allow multiline comments in more contexts 2020-08-07 11:39:14 -04:00
Connor Skees
7a4a191d59 allow variable declarations before and between @use 2020-08-07 02:10:51 -04:00
Connor Skees
a7ccb4d6d3 move module variable parsing to module file 2020-08-07 02:03:46 -04:00
Connor Skees
438abe52be allow redeclaration of module variables 2020-08-07 02:01:04 -04:00
Connor Skees
bb0b352af2 move module parsing to separate file 2020-08-06 22:05:50 -04:00
Connor Skees
cacf605af8 respect $with argument to load-css 2020-08-06 21:58:53 -04:00
Connor Skees
0254517095 refactor errors using Parser::expect_char 2020-08-06 21:36:11 -04:00
Connor Skees
074d679cbd support the @use ... with (...) syntax 2020-08-06 21:05:40 -04:00
Connor Skees
94becb4dcb implement idempotency with regard to module aliasing 2020-08-06 04:01:46 -04:00
Connor Skees
d029fd2001 implement module mixins and meta.load-css 2020-08-06 03:46:58 -04:00
Connor Skees
d043167015 Merge branch 'master' of https://github.com/connorskees/grass into modules 2020-08-06 01:23:09 -04:00
Connor Skees
8fabda6363 use back() rather than indexing at len - 1 2020-08-05 03:26:50 -04:00
Connor Skees
61ef52eb3f replace .get(0) with .first() 2020-08-05 03:09:10 -04:00
Connor Skees
df1456f9b1 use new predicate parsing for bracketed lists 2020-08-05 03:03:58 -04:00
Connor Skees
9c2d1200f7 allow multiline comments in functions 2020-08-04 02:13:15 -04:00
Connor Skees
a79c62c2fa allow escaped ! in selectors 2020-08-04 02:05:59 -04:00
Connor Skees
55bcd1d1dd resolve panic from malformed filter argument 2020-08-04 01:35:49 -04:00
Connor Skees
622d44ac63 disallow selectors and styles in functions 2020-08-04 01:18:34 -04:00
Connor Skees
3e5f69118b disallow more at-rules in @function 2020-08-02 23:00:00 -04:00
Connor Skees
2df5e1b274 resolve panic on malformed args missing closing parenthesis 2020-08-02 22:24:37 -04:00
Connor Skees
5efe99a404 resolve merge conflicts with master 2020-08-02 15:11:59 -04:00
Ivan Tham
c5814a4a06 refactor parser return 2020-08-02 15:03:55 -04:00
Connor Skees
6189810ced allow vendor prefixed special css functions 2020-08-02 14:52:46 -04:00
Connor Skees
698339b8c7 initial implementation of private module members 2020-08-02 04:20:08 -04:00
Connor Skees
28701b2707 Merge branch 'master' of https://github.com/connorskees/grass into modules 2020-08-01 15:12:24 -04:00
Ivan Tham
00aeacbc74 refactor parser return 2020-08-01 14:57:15 -04:00
Connor Skees
dbe7f2d50b use Unit rather than string as key to unit conversion map 2020-08-01 14:33:22 -04:00
Connor Skees
123ed80e9a resolve merge conflicts with master 2020-07-31 17:37:00 -04:00
Connor Skees
da3c3eabfc refactor how @content scoping is handled 2020-07-30 23:40:34 -04:00
Connor Skees
da9c0b78b2 variables declared in mixins can be accessed after @content 2020-07-30 22:26:24 -04:00
Connor Skees
a7325436ca respect $module argument to get-function 2020-07-30 17:46:56 -04:00
Connor Skees
a03ad51b71 allow @use of user-defined modules 2020-07-30 17:21:32 -04:00
Connor Skees
2fb19e161e resolve newly failing tests from merge 2020-07-29 08:58:21 -04:00
Connor Skees
a8ec130f64 resolve merge conflict with master 2020-07-29 08:38:13 -04:00
Connor Skees
f587a36367 fix regression involving min and max inside color functions 2020-07-29 08:27:53 -04:00
Connor Skees
734e0875da resolve merge conflicts with master 2020-07-29 07:30:20 -04:00
Connor Skees
e0cecb4e5c allow @keyframes to have vendor prefixes and decimal selectors 2020-07-29 07:25:21 -04:00
Connor Skees
6631b8ae0e correctly parse the function filter syntax 2020-07-28 18:09:23 -04:00
Connor Skees
ace9757897 use a predicate to simplify and improve parsing of maps 2020-07-28 01:59:43 -04:00
Connor Skees
f69b863e33 better handle silent comments in maps and fn args 2020-07-27 22:30:36 -04:00
Connor Skees
d6a1d64dcb implement @use ... as *; syntax 2020-07-27 18:55:38 -04:00
Connor Skees
53cf2816e0 use None to represent NaN 2020-07-26 19:38:41 -04:00
Connor Skees
dbfa691505 resolve clippy lints 2020-07-26 13:49:13 -04:00
Connor Skees
ee57cda9c5 give better error messages for undefined modules and functions 2020-07-26 13:44:30 -04:00
Connor Skees
0916dcc5bd support the @use ... as ...; syntax 2020-07-26 13:36:01 -04:00
Connor Skees
eeb0b0a924 implement builtin sass:math function clamp 2020-07-26 13:21:59 -04:00