93 Commits

Author SHA1 Message Date
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
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
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
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
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
d6a1d64dcb implement @use ... as *; syntax 2020-07-27 18:55:38 -04:00
Connor Skees
dbfa691505 resolve clippy lints 2020-07-26 13:49:13 -04:00
Connor Skees
0916dcc5bd support the @use ... as ...; syntax 2020-07-26 13:36:01 -04:00
Connor Skees
060641b86d implement aliased sass:math functions 2020-07-26 00:05:13 -04:00
Connor Skees
c0631c75a0 resolve parsing error involving toplevel, multiline comments 2020-07-25 20:30:01 -04:00
Connor Skees
8c23ec046e allow loading of builtin modules 2020-07-25 20:05:46 -04:00
Connor Skees
3a7a3f508a initial parsing work for modules 2020-07-25 19:22:12 -04:00
Connor Skees
dee6699bde remove superfluous parser creation 2020-07-25 18:33:59 -04:00
Connor Skees
67cbf9591a allow !optional in @extend 2020-07-24 20:23:54 -04:00
Connor Skees
2b59bdf961 implement option for quiet output 2020-07-15 13:40:39 -04:00
Joe Ling - uni laptop
50d1987af2 Added grass::Options and implemented options.load_paths 2020-07-15 12:37:19 +01:00
Joe Ling - uni laptop
33a2c7efbf fixed fmt and clippy warnings 2020-07-13 16:17:16 +01:00
Joe Ling - uni laptop
afbae12b72 fixed formatting 2020-07-13 15:39:14 +01:00
Joe Ling - uni laptop
fe26350932 Added load_paths for @import 2020-07-13 14:52:52 +01:00
Connor Skees
c2384595e8 improve span context in @extend, removing some potential panics 2020-07-12 13:09:23 -04:00
Connor Skees
d56100a324 correctly parse styles after @supports and unknown at rules 2020-07-10 22:24:03 -04:00
Connor Skees
005f0e52e8 make read_until_newline parser method public 2020-07-10 21:48:19 -04:00
Connor Skees
830d56bd77 only evaluate division in certain cases 2020-07-09 23:52:35 -04:00
Connor Skees
0639a6ba2b correctly parse quoted media queries 2020-07-09 13:43:27 -04:00
Connor Skees
02efd09d80 avoid cloning the entire scope 2020-07-08 17:52:37 -04:00
Connor Skees
47902c077c refactor how scopes are calculated 2020-07-08 14:51:04 -04:00
Connor Skees
56a5abb05c parsing interpolation no longer allocates buffer 2020-07-08 10:19:57 -04:00
Connor Skees
4b0b644264 refactor control flow parsing into separate module 2020-07-08 10:15:54 -04:00
Connor Skees
3f3fd97872 test for crazy interpolation in @for from value 2020-07-08 09:52:07 -04:00
Connor Skees
978984ae15 refactor how to value in @for is parsed 2020-07-08 09:25:35 -04:00
Connor Skees
b42ae61435 test for crazy interpolation inside @if 2020-07-08 09:08:25 -04:00
Connor Skees
6a83db7404 resolve clippy lints 2020-07-07 19:50:17 -04:00
Connor Skees
b729d7b257 move Comment enum to common 2020-07-07 19:37:48 -04:00
Connor Skees
fd4073aaca further reduce allocations in @if 2020-07-07 19:36:13 -04:00
Connor Skees
11e859705a remove value_from_vec where unnecessary 2020-07-07 18:06:28 -04:00
Connor Skees
aa209702d2 reduce allocations for @if 2020-07-07 17:50:18 -04:00
Connor Skees
ef25481420 invert if statement 2020-07-07 17:26:10 -04:00
Connor Skees
9b4815e75f avoid unnecessary cloning of identifiers 2020-07-07 17:22:18 -04:00
Connor Skees
817c808826 dont allocate @if body unless necessary 2020-07-07 17:13:13 -04:00
Connor Skees
25862a5af8 do not strip whitespace before comma in psuedo selector 2020-07-07 11:37:20 -04:00
Connor Skees
49607da222 fix @each bug involving list containing map with multiple elements 2020-07-06 23:11:46 -04:00
Connor Skees
e1e643d286 emit @import when importing a url or .css file 2020-07-06 19:47:12 -04:00