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
ConnorSkees
8e3e23c6cd
builtin functions take args by value
2020-04-02 13:45:14 -04:00
ConnorSkees
39031aefff
initial implementation of varargs
2020-04-02 13:33:26 -04:00
ConnorSkees
b440258027
handle no value after /
2020-04-02 02:32:32 -04:00
ConnorSkees
618fa9ed86
symbol after hash in value
2020-04-02 02:08:14 -04:00
ConnorSkees
87b03e91c9
error message for unopened close paren in value
2020-04-02 02:03:15 -04:00
ConnorSkees
d48560781c
unquoted plus quoted is unquoted
2020-04-01 21:43:58 -04:00
ConnorSkees
6f39921665
handle ? in value
2020-04-01 18:46:58 -04:00
ConnorSkees
c235ba2c31
emit proper error message for superfluous colon
2020-04-01 18:43:13 -04:00
ConnorSkees
4cfbf1c4c2
refactor ident parsing to separate function
2020-04-01 18:42:58 -04:00
ConnorSkees
dd4a48165a
clippy
2020-04-01 18:09:58 -04:00
ConnorSkees
f46d53d3cc
implement keyword operators
2020-04-01 17:40:35 -04:00
ConnorSkees
07c8f7b2a9
remove leftover dbg!
2020-04-01 15:49:49 -04:00
ConnorSkees
6df6bcf1da
refactor value parsing
2020-04-01 15:32:52 -04:00
ConnorSkees
978fbaade0
allow whitespace between ! and important
2020-03-31 22:00:38 -04:00
ConnorSkees
08f7dba00d
implement integer division to an extent
2020-03-31 02:31:14 -04:00
ConnorSkees
8a600a4f07
implement number minus ident
2020-03-31 01:52:52 -04:00
ConnorSkees
90b940fd7d
properly omit negative for values that round to zero
2020-03-31 01:38:57 -04:00
ConnorSkees
e5b7043480
do not print null values inside list
2020-03-31 00:27:00 -04:00
ConnorSkees
beff60ad31
clippy
2020-03-30 17:06:23 -04:00
ConnorSkees
4b1dc39705
handle map-merge key overlaps
2020-03-30 16:33:43 -04:00
ConnorSkees
23f7301a25
implement length for maps
2020-03-30 16:01:44 -04:00
ConnorSkees
eb478b632d
initial implementation of maps
2020-03-30 15:44:06 -04:00
ConnorSkees
2ce639e9be
implement > < >= <=
2020-03-30 10:42:13 -04:00
ConnorSkees
57a704172f
properly handle silent comments in styles
2020-03-30 02:21:41 -04:00
ConnorSkees
ae0ce9894c
variables do not include interpolation
2020-03-30 01:48:37 -04:00
ConnorSkees
9c690140ec
allow non-ascii characters in idents
2020-03-30 01:24:50 -04:00
ConnorSkees
1e5dc99793
Revert "properly handle unicode characters in identifiers"
...
This reverts commit dea0610f9b12a8531ae63eee993c0c6d6546bb72.
This was not properly tested, and results in a number of breakages.
2020-03-30 01:00:17 -04:00
ConnorSkees
dea0610f9b
properly handle unicode characters in identifiers
2020-03-30 00:55:14 -04:00
ConnorSkees
6608fe3f2f
allow negative numbers multiplication
2020-03-30 00:38:46 -04:00
ConnorSkees
5bbf10b05f
allow idents to begin with hyphen
2020-03-29 22:17:56 -04:00
ConnorSkees
07505399da
remove the lexer
2020-03-29 19:42:27 -04:00
ConnorSkees
f15ab57573
refactor @if/@else if/@else
2020-03-24 22:13:38 -04:00
ConnorSkees
6d2d9bcb4a
escape all symbols and whitespace
2020-03-24 13:36:39 -04:00
ConnorSkees
c29088b558
allow trailing commas
2020-03-24 00:17:18 -04:00
ConnorSkees
0ded248e1e
allow comma separated bracketed list in function args
2020-03-23 23:52:15 -04:00