Connor Skees
f437649103
add support for splats
2020-07-02 17:25:52 -04:00
ConnorSkees
369feb5c40
use clearer naming for Number variants
2020-06-26 08:47:10 -04:00
ConnorSkees
9212ff5fa1
resolve clippy lints
2020-06-26 06:12:50 -04:00
ConnorSkees
a04bc40129
make Unit and Number structs smaller
2020-06-26 04:55:00 -04:00
ConnorSkees
2887016ceb
tidy documentation
...
standardize capitalization of "Sass" and make updates to reflect new
0.9.0 API
2020-06-20 06:31:43 -04:00
ConnorSkees
195079de86
initial implementation of @extend
2020-06-20 06:09:12 -04:00
ConnorSkees
962549e31b
remove most remaining unwraps
2020-06-18 18:22:58 -04:00
ConnorSkees
d90ef7fa41
remove unwrap
s in Value::to_css_string
2020-06-18 18:22:58 -04:00
ConnorSkees
854f3c9fb2
refactor @ import
...
based on code review by @pickfire here,
https://github.com/connorskees/grass/pull/13
2020-06-18 18:22:58 -04:00
ConnorSkees
d196a93f91
arglists are lists too
2020-06-18 18:22:58 -04:00
ConnorSkees
c1b5ff5730
prettify imports
2020-06-16 20:00:11 -04:00
ConnorSkees
71dd7df951
reimplement parsing
2020-06-16 19:38:30 -04:00
ConnorSkees
ab61f9fb32
Merge branch 'master' into selector-fns
2020-05-31 05:38:24 -04:00
ConnorSkees
b64ad5b1f3
resolve all clippy lints
2020-05-31 05:32:19 -04:00
ConnorSkees
72f62ce711
avoid creating new rational when multiplying num by small integer
2020-05-31 05:16:36 -04:00
ConnorSkees
ccf33d2cfb
Merge branch 'master' of https://github.com/connorskees/grass
2020-05-31 04:53:50 -04:00
ConnorSkees
25301f8dd1
Merge branch 'master' of https://github.com/connorskees/grass
2020-05-31 04:52:14 -04:00
ConnorSkees
f3a58e0fa3
initial implementation of selector-* builtin fns
2020-05-31 04:51:41 -04:00
Connor Skees
b46b0a9e6e
Merge pull request #11 from connorskees/optim-number-parse
...
use ad hoc parser for small integers
2020-05-30 19:06:55 -04:00
ConnorSkees
3c1a9a99b7
properly evaluate equality between lists
2020-05-28 01:48:46 -04:00
ConnorSkees
b658369e8a
use fold instead of for loop
2020-05-27 13:53:47 -04:00
ConnorSkees
e9ffaa579e
use ad hoc parser for small integers
...
this results in about a 3% speed up for small integer and float parsing
2020-05-26 23:38:24 -04:00
Vincent Prouillet
9ae3ce52be
Fix fmt + sass
2020-05-26 16:29:39 +02:00
ConnorSkees
6820416c8d
resolve merge conflicts
2020-05-25 16:15:42 -04:00
ConnorSkees
6e7938f969
increase code coverage for bit integers
2020-05-25 14:44:46 -04:00
ConnorSkees
bb53aaab8a
replace std::borrow::Cow with beef::Cow
2020-05-25 13:09:20 -04:00
ConnorSkees
6d76e1518a
refactor away many unwrap
s
2020-05-25 00:57:59 -04:00
ConnorSkees
ec83a9dff7
clippy
2020-05-24 17:41:24 -04:00
ConnorSkees
d90d998ccd
remove unwrap in Value::is_null
2020-05-24 16:41:09 -04:00
ConnorSkees
3c129780d0
span_before in quoted string
2020-05-24 16:27:07 -04:00
ConnorSkees
e5cceb60ec
track span_before when parsing values
...
this allows us to remove many panics on invalid input
2020-05-24 15:30:06 -04:00
ConnorSkees
812e9fec9c
rustfmt
2020-05-24 13:50:45 -04:00
ConnorSkees
b5c1fb2013
ignore non-ascii numeric characters in numbers
2020-05-24 13:08:31 -04:00
ConnorSkees
f52d784756
remove panic from unclosed call args
2020-05-24 10:18:15 -04:00
ConnorSkees
737a6ba90d
emit proper error on unclosed quote
2020-05-24 10:04:30 -04:00
ConnorSkees
042dbfa914
remove panics from missing identifiers
2020-05-24 08:56:53 -04:00
ConnorSkees
2aaaf59e4f
make division with number as lhs more robust
2020-05-24 08:17:08 -04:00
ConnorSkees
cbec20f753
make value parsing more robust
2020-05-24 07:51:28 -04:00
ConnorSkees
5137353cb4
rustfmt
2020-05-23 14:08:40 -04:00
ConnorSkees
ff2962b124
remove more unwraps
2020-05-23 14:07:57 -04:00
ConnorSkees
34f9436163
remove unwrap in favor of if let
2020-05-23 14:03:47 -04:00
ConnorSkees
da768badea
remove unwrap in favor of if let
2020-05-23 13:59:03 -04:00
ConnorSkees
076ee7ca4e
remove redundant clone of identifier
2020-05-23 13:53:24 -04:00
ConnorSkees
a3548b0044
remove panic for missing equal
2020-05-23 11:50:25 -04:00
ConnorSkees
2a79fa2a40
implement some of the more esoteric binary ops
...
addition, subtraction, and multiplication of functions and maps, along
with correct error messages and tests
2020-05-22 23:30:48 -04:00
ConnorSkees
7261f57e01
emit proper error for map as rhs of addition
2020-05-22 20:47:53 -04:00
ConnorSkees
80e32b4290
emit proper error for map as lhs of addition
2020-05-22 20:34:41 -04:00
ConnorSkees
b4b2edc9a4
use Identifier for SassFunction names
2020-05-22 20:13:39 -04:00
ConnorSkees
283a2097ff
rename Value::Ident to Value::String
2020-05-22 14:35:41 -04:00
ConnorSkees
969726eb30
Revert string interning
...
There existed issues related to multithreaded tests that are difficult
to resolve. In the future interning may be reimplemented but in a more
limited capacity.
The motivation behind interning *values* was that it appeared checking
for named colors was responsible for much of the time lost when parsing
unquoted strings. If interning were to be reimplemented, it may make
sense to limit it solely to identifiers and style properties.
2020-05-22 14:20:31 -04:00