19 Commits

Author SHA1 Message Date
ConnorSkees
dcb712e3d4 Refactor unit conversions into separate file 2020-03-19 16:24:31 -04:00
ConnorSkees
51585235c3 Remove decl! macro
This lets rustfmt work and gives better autocomplete and error messages
inside builtin functions.
2020-03-16 10:35:38 -04:00
ConnorSkees
276134eb93 prefer hashmap over btreemap where ordering is unimportant 2020-03-03 19:51:02 -05:00
ConnorSkees
23b90aa97e Use remove() rather than .get() to avoid a clone 2020-02-16 22:04:54 -05:00
ConnorSkees
c68a55327b Unquote empty string is null 2020-02-16 18:45:14 -05:00
ConnorSkees
3962c4410a Proper error messages for str-slice 2020-02-16 18:42:35 -05:00
ConnorSkees
09e4537e78 Proper error in str-slice when passed float 2020-02-16 18:39:27 -05:00
ConnorSkees
c9f7289670 Error messages for string functions 2020-02-16 18:32:13 -05:00
ConnorSkees
26b0f2c998 Add max_args! to most functions 2020-02-16 18:18:57 -05:00
ConnorSkees
d300cd046a Use SassError over Option inside builtins 2020-02-16 10:14:17 -05:00
ConnorSkees
19d68c3c5d Handle str-slice $end-at is 0 2020-02-15 08:54:10 -05:00
ConnorSkees
d082583917 Handle negative numbers in str-slice() 2020-02-15 08:51:00 -05:00
ConnorSkees
fab55c5105 Properly handle str-slice() when $start-at is 0 2020-02-15 08:33:42 -05:00
ConnorSkees
6c97cd4755 Implement builtin function str-slice() 2020-02-14 14:23:54 -05:00
ConnorSkees
86173a3ca7 Implement builtin functions quote and unquote 2020-02-08 21:19:54 -05:00
ConnorSkees
22670a7e4b Implement builtin function str-length 2020-02-08 20:38:37 -05:00
ConnorSkees
07845beee9 Implement to-upper-case() and to-lower-case() 2020-02-08 20:32:10 -05:00
ConnorSkees
c7f34f573f newlines in builtin files 2020-02-02 21:09:29 -05:00
ConnorSkees
1c4ad8a7fa Builtin function boilerplate 2020-02-02 18:05:36 -05:00