319 Commits

Author SHA1 Message Date
Connor Skees
15f657df6d implement builtin sass:math variables 2020-07-26 00:10:55 -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
7f25d526f5 more liberally throw away comments alongside whitespace 2020-07-25 15:03:49 -04:00
Connor Skees
3757c39c6f resolve panic from the input foo($--) 2020-07-25 14:45:11 -04:00
Connor Skees
f2cd74528b remove unwrap from next_is_hyphen() 2020-07-25 01:05:42 -04:00
Connor Skees
67cbf9591a allow !optional in @extend 2020-07-24 20:23:54 -04:00
Connor Skees
5634681fa2 lazily evaluate default variable values 2020-07-24 20:13:14 -04:00
Joe Ling - uni laptop
428599f091 fixed test tempfile naming 2020-07-24 15:40:39 -04:00
Joe Ling - uni laptop
be4d02490c added comma separated imports 2020-07-24 15:40:34 -04:00
Connor Skees
2b59bdf961 implement option for quiet output 2020-07-15 13:40:39 -04:00
Connor Skees
f8453e4a0a disallow interpolation in the name of mixin declarations 2020-07-15 13:20:50 -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
5c20c00d6d updated comments for import and from_paths 2020-07-13 18:53:53 +01:00
Joe Ling - uni laptop
ec5ab05330 added find_import to import and renamed lib method to from_paths 2020-07-13 18:18:25 +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
20fc9e8e6b simplify interpolated ident parsing by changing if stmt to match 2020-07-12 13:18:39 -04: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
b4bdd2f926 deny mixins in functions, control flow, and mixins 2020-07-10 22:03:15 -04:00
Connor Skees
005f0e52e8 make read_until_newline parser method public 2020-07-10 21:48:19 -04:00
Connor Skees
5902ebd642 arg methods are now inherent to CallArgs, rather than parser 2020-07-10 21:42:10 -04:00
Connor Skees
3c756f661d unconditionally exit mixin scope 2020-07-10 21:23:26 -04:00
Connor Skees
a379d870fc remove Hash impl for Value 2020-07-10 00:17:15 -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
1b8e0ebcd2 properly recognize arglist of null as null 2020-07-08 23:49:30 -04:00
Connor Skees
cee16fece7 loop indexing vars do not affect outer scopes 2020-07-08 23:17:20 -04:00
Connor Skees
f9455caeea derive Copy for Identifier 2020-07-08 22:38:56 -04:00
Connor Skees
2dfda192bc implement string interning 2020-07-08 21:36:41 -04:00
Connor Skees
ca370eb9b0 avoid allocating unnecessary errors for getting functions 2020-07-08 20:35:15 -04:00
Connor Skees
980b2d9076 prefer append over extend in callarg parsing 2020-07-08 19:25:35 -04:00
Connor Skees
5ce9f78103 simplify by using mem::swap instead of mem::take 2020-07-08 18:19:23 -04:00
Connor Skees
02efd09d80 avoid cloning the entire scope 2020-07-08 17:52:37 -04:00
Connor Skees
316316d3a0 invert if stmt in parsing @content 2020-07-08 15:32:04 -04:00
Connor Skees
47902c077c refactor how scopes are calculated 2020-07-08 14:51:04 -04:00
Connor Skees
3a5526ab26 avoid unnecessary allocations when converting String to Identifier 2020-07-08 10:38:25 -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
0c0c154b66 avoid cloning identifiers for functions 2020-07-07 21:11:45 -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