340 Commits

Author SHA1 Message Date
Connor Skees
438abe52be allow redeclaration of module variables 2020-08-07 02:01:04 -04:00
Connor Skees
cacf605af8 respect $with argument to load-css 2020-08-06 21:58:53 -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
de9571b3fe remove allows from modules 2020-08-06 03:53:18 -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
61ef52eb3f replace .get(0) with .first() 2020-08-05 03:09:10 -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
8bd14e0e86 implement builtin function math.hypot 2020-08-01 14:05:25 -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
734e0875da resolve merge conflicts with master 2020-07-29 07:30:20 -04:00
Connor Skees
6631b8ae0e correctly parse the function filter syntax 2020-07-28 18:09:23 -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
Connor Skees
313913734a tests for math.asin and math.atan 2020-07-27 00:14:39 -04:00
Connor Skees
fbcee00bdd allow NaN to take units and refactor math.acos 2020-07-26 23:45:02 -04:00
Connor Skees
78da4ad2fe use macro to simplify declaration of trig fns 2020-07-26 22:17:52 -04:00
Connor Skees
e67b0dc440 implement builtin math functions sin, tan, acos, asin, and atan 2020-07-26 22:11:19 -04:00
Connor Skees
eee5eeb826 implement builtin function math.cos 2020-07-26 22:04:07 -04:00
Connor Skees
2265e7eb74 implement builtin function math.sqrt 2020-07-26 21:24:21 -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
eeb0b0a924 implement builtin sass:math function clamp 2020-07-26 13:21:59 -04:00
Connor Skees
3fae0a9621 alias sass:color builtin functions 2020-07-26 00:58:09 -04:00
Connor Skees
67fffe7498 alias sass:meta builtin functions 2020-07-26 00:47:40 -04:00
Connor Skees
b3d20a574a alias sass:string builtin functions 2020-07-26 00:25:58 -04:00
Connor Skees
ca4c5da73e alias sass:map builtin functions 2020-07-26 00:22:44 -04:00
Connor Skees
21e096247e alias sass:list builtin functions 2020-07-26 00:20:20 -04:00
Connor Skees
d6126110e9 alias sass:selector builtin functions 2020-07-26 00:15:34 -04:00
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
8c23ec046e allow loading of builtin modules 2020-07-25 20:05:46 -04:00
Connor Skees
20fc9e8e6b simplify interpolated ident parsing by changing if stmt to match 2020-07-12 13:18:39 -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
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
f9455caeea derive Copy for Identifier 2020-07-08 22:38:56 -04:00
Connor Skees
ca370eb9b0 avoid allocating unnecessary errors for getting functions 2020-07-08 20:35:15 -04:00