ConnorSkees
4d989b60b1
remove final clamp! macro
2020-04-22 06:05:19 -04:00
ConnorSkees
33ccabce7b
box color in value
2020-04-21 18:54:19 -04:00
ConnorSkees
3805eaab2b
clippy
2020-04-21 18:22:26 -04:00
ConnorSkees
d480e60628
replace clamp! macro with builtin method
2020-04-21 17:59:40 -04:00
ConnorSkees
4607163a62
more robustly handle - as start of identifier
2020-04-21 17:57:50 -04:00
ConnorSkees
38c45129d9
refactor function eval
2020-04-21 11:32:27 -04:00
ConnorSkees
fc3facb80c
properly handle url()
2020-04-21 04:20:35 -04:00
ConnorSkees
a6b61082fe
interpolation of strings in idents is literal
2020-04-20 12:12:39 -04:00
ConnorSkees
29886d6845
newlines are no longer replaced with spaces in quoted strings
2020-04-20 11:48:17 -04:00
ConnorSkees
4cdcf4f0d4
use peekmore rather than std::iter::Peekable
2020-04-20 03:45:28 -04:00
ConnorSkees
e07ceda8c7
add unit field to ident eating
2020-04-20 03:20:08 -04:00
ConnorSkees
9790846c99
inspect comma separated list of comma separated lists
2020-04-20 03:07:02 -04:00
ConnorSkees
715f6fb94a
inspect single value lists
2020-04-20 02:55:55 -04:00
ConnorSkees
c521e0a835
somewhat handle unary div
2020-04-20 02:32:46 -04:00
ConnorSkees
f8540755f5
better support for unary plus
2020-04-20 02:19:54 -04:00
ConnorSkees
b6cf00c87b
addition between number and unary ops
2020-04-20 02:16:22 -04:00
ConnorSkees
23390238b9
implement addition between num + bool
2020-04-20 02:13:28 -04:00
ConnorSkees
a8e97984d4
subtraction occurs when no space between operands
2020-04-20 01:56:53 -04:00
ConnorSkees
9d9997432a
properly unquote lists
2020-04-19 22:55:25 -04:00
ConnorSkees
18a04b2669
move util hex_char_for() to utils.rs
2020-04-19 15:50:22 -04:00
ConnorSkees
e820395cc5
refactor printing and parsing of quoted strings
2020-04-19 13:51:37 -04:00
ConnorSkees
4ba45bb8c1
more robust handling of is_null
2020-04-19 00:39:18 -04:00
ConnorSkees
71546d7fc4
handle -(null) and -null
2020-04-18 20:45:40 -04:00
ConnorSkees
305581ad75
properly error when attempting to display map
2020-04-18 20:11:49 -04:00
ConnorSkees
759e5fdfef
simplify ident addition/subtraction
2020-04-18 13:44:11 -04:00
ConnorSkees
fc51798595
change several if statements to match
2020-04-18 13:22:06 -04:00
ConnorSkees
52c6ed0b64
remove QuoteKind::Single variant
2020-04-18 13:19:30 -04:00
ConnorSkees
7181077163
interchangeable underscore/hyphen in builtin functions
2020-04-13 12:57:25 -04:00
ConnorSkees
62f9f7da4f
integrate error handling with codemap
2020-04-12 19:37:12 -04:00
ConnorSkees
97425665f9
consolidate implementation of rgb and rgba
2020-04-06 21:22:03 -04:00
ConnorSkees
7e793392a7
handle special functions calc, element, expression, and progid
2020-04-06 19:26:47 -04:00
ConnorSkees
ce346077f9
properly parse plain css functions
2020-04-06 15:35:46 -04:00
ConnorSkees
ef282c5c18
consolidate inspect implementations
2020-04-06 00:27:09 -04:00
ConnorSkees
44ff1c99b3
add helper function Value::from_vec
2020-04-06 00:11:18 -04:00
ConnorSkees
81e84536da
refactor @ error to just be a real error
2020-04-05 23:56:08 -04:00
ConnorSkees
d550615957
implement order of operations
2020-04-05 17:34:30 -04:00
ConnorSkees
c8a59ea501
implement builtin function random
2020-04-05 13:42:53 -04:00
ConnorSkees
b2451b45c6
refactor paren parsing (still susceptible to stack overflow)
2020-04-04 21:08:25 -04:00
ConnorSkees
bf8cb594da
rustfmt
2020-04-04 21:07:53 -04:00
ConnorSkees
b44c064481
Rename value/function.rs to value/sass_function.rs
...
This is to faciliate the addition of src/value/css_function.rs and the
inclusion of a special type `CssFunction` which represents a plain css
function.
2020-04-04 18:55:59 -04:00
ConnorSkees
b7be1705a2
args and default values are lazily evaluated
2020-04-04 18:17:04 -04:00
ConnorSkees
24983b9d20
rustfmt
2020-04-04 14:13:17 -04:00
ConnorSkees
24caa20aad
implement Debug for SassFunction
2020-04-04 14:05:26 -04:00
ConnorSkees
943299de74
better handling of $module in get-function
2020-04-04 12:45:30 -04:00
ConnorSkees
051185e280
implement builtin function call()
2020-04-04 12:31:43 -04:00
ConnorSkees
81c85a6f86
handle builtin functions in get-function
2020-04-03 23:49:44 -04:00
ConnorSkees
3f98d1abca
initial implementation of get-function()
2020-04-03 21:38:34 -04:00
ConnorSkees
04e9b99b09
fail on duplicate key in map declaration
2020-04-03 16:38:01 -04:00
ConnorSkees
2d7f69e3da
equality does unit conversions
2020-04-03 14:34:59 -04:00
ConnorSkees
cba2b12771
handle maps in nth()
2020-04-02 15:22:18 -04:00