73 Commits

Author SHA1 Message Date
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
Connor Skees
7c320ae9a2 handle edge case of single list containing map used in @each 2020-07-06 16:10:09 -04:00
Connor Skees
92aa149f8a remove dependency on bitflags 2020-07-05 10:21:43 -04:00
Ivan Tham
85ec26001a Keep parser context with bitflags 2020-07-05 09:35:42 -04:00
Connor Skees
c4439c14fd do not strip newlines after comments in selectors 2020-07-04 21:02:49 -04:00
Connor Skees
827225a143 initial implementation of @keyframes 2020-07-04 20:50:53 -04:00
Connor Skees
30a3a46b2d fix longstanding @extend bug related to selector lists 2020-07-03 19:58:43 -04:00
Connor Skees
596def3906 refactor value evaluation 2020-07-03 12:38:20 -04:00
Connor Skees
125c85a69c allow variables named to and through in @for 2020-07-02 16:06:34 -04:00
Connor Skees
1b033c3643 properly handle chained @content 2020-07-02 15:22:15 -04:00
Connor Skees
a88f07da54 allow @content to take arguments 2020-07-02 10:31:32 -04:00
Connor Skees
4b98ec198d @media no longer consumes everything after it as children 2020-07-01 07:10:47 -04:00
Connor Skees
f476f4af25 no longer strip whitespace at the end of selectors
the whitespace can sometimes be part of an escape, e.g. `\ `
2020-06-30 06:43:26 -04:00
Connor Skees
0b28bb4c35 optimize common case of single style 2020-06-27 07:24:53 -04:00
ConnorSkees
1c73e5657a store reference to @content 2020-06-26 01:02:06 -04:00
ConnorSkees
17a0323da5 resolve clippy lints 2020-06-25 01:33:02 -04:00
ConnorSkees
e12d3a581d reduce size of parse::Stmt 2020-06-25 00:27:24 -04:00
ConnorSkees
177cacd9c9 commit temporary workaround for @keyframes 2020-06-24 11:41:36 -04:00
ConnorSkees
9512e9f39f improve parsing of media queries 2020-06-24 11:39:32 -04:00
ConnorSkees
7f8dc52e24 wrap extended selectors in Rc<RefCell<T>> 2020-06-23 04:28:54 -04:00
ConnorSkees
0650f0ebcf super selectors are resolved eagerly 2020-06-23 04:28:54 -04:00