1750 Commits

Author SHA1 Message Date
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
835aa34dee Merge branch 'master' of https://github.com/connorskees/grass into modules 2020-08-02 15:58:16 -04:00
Connor Skees
74dad6af0c allow whitespace after multiline comment in named args 2020-08-02 15:57:58 -04:00
Connor Skees
5efe99a404 resolve merge conflicts with master 2020-08-02 15:11:59 -04:00
Ivan Tham
4a9c200a7e remove alpha from get_by_name 2020-08-02 15:03:55 -04:00
Ivan Tham
c5814a4a06 refactor parser return 2020-08-02 15:03:55 -04:00
Ivan Tham
edec89093b use phf for named rgba map hashing
Improves many_named_colors benchmark by ~40%.

many_named_colors       time:   [897.66 us 900.05 us 903.05 us]
                        change: [-41.299% -40.114% -38.800%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) high mild
  4 (4.00%) high severe
2020-08-02 15:03:55 -04:00
Ivan Tham
45476b8a75 elide lifetime for Default Options impl 2020-08-02 15:03:55 -04:00
Connor Skees
db41737ec7 hue can never be exactly 360 2020-08-02 15:03:26 -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
a9e4d5cba5 implement builtin function math.atan2 2020-08-02 00:43:26 -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
d68ffd6510 remove alpha from get_by_name 2020-08-01 14:57:15 -04:00
Ivan Tham
00aeacbc74 refactor parser return 2020-08-01 14:57:15 -04:00
Ivan Tham
7fe3abc625 use phf for named rgba map hashing
Improves many_named_colors benchmark by ~40%.

many_named_colors       time:   [897.66 us 900.05 us 903.05 us]
                        change: [-41.299% -40.114% -38.800%] (p = 0.00 < 0.05)
                        Performance has improved.
Found 6 outliers among 100 measurements (6.00%)
  2 (2.00%) high mild
  4 (4.00%) high severe
2020-08-01 14:57:15 -04:00
Ivan Tham
ed85ad55a2 elide lifetime for Default Options impl 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
8bd14e0e86 implement builtin function math.hypot 2020-08-01 14:05:25 -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
a8046b0d83 respect $module argument to global-variable-exists 2020-07-30 18:52:31 -04:00
Connor Skees
cfd2e00ebb respect $module argument to mixin-exists 2020-07-30 18:35:34 -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
af9864ff85 resolve clippy lint for is_ms_filter 2020-07-30 16:42:08 -04:00
Ivan Tham
80986efee9
refactor is_ms_filter
* refactor to use matches or patterns

* simplify text searching with iterator

* match is_ms_filter on bytes level

* add regex doc for is_ms_filter

* use is_ascii_alphabetic

* check equality rather than map_or =

Co-authored-by: Connor Skees <connor1skees@gmail.com>
2020-07-30 16:39:06 -04:00
Connor Skees
8c1cde8a61 implement builtin function math.pow 2020-07-29 18:13:37 -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
be027c8105 Merge branch 'master' of https://github.com/connorskees/grass into modules 2020-07-29 07:32:12 -04:00
Connor Skees
6beb95ece0 fix @keyframes test failing from typo 2020-07-29 07:31:58 -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
627bd62bb9 ignore more Sass frameworks 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
36d7b5d920 implement builtin function meta.module-variables 2020-07-27 18:06:00 -04:00
Connor Skees
2b9cad5971 implement builtin function meta.module-functions 2020-07-27 17:59:09 -04:00
Connor Skees
f63b254367 refactor math.acos implementation
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2020-07-27 15:41:32 -04:00
Connor Skees
717cdd9501 adjust-hue is not included in the module system 2020-07-27 02:03:56 -04:00
Connor Skees
458fcf0fd8 implement builtin function math.log 2020-07-27 01:52:34 -04:00