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
f3a58e0fa3
initial implementation of selector-* builtin fns
2020-05-31 04:51:41 -04:00
ConnorSkees
0bc6445ebf
fix wasm build issue
2020-05-25 19:21:00 -04:00
ConnorSkees
ec83a9dff7
clippy
2020-05-24 17:41:24 -04:00
ConnorSkees
3c129780d0
span_before in quoted string
2020-05-24 16:27:07 -04:00
ConnorSkees
8d4b4bedbe
remove unwrap in peek_ident
2020-05-24 15:53:51 -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
3051cec45a
disallow standalone @else
2020-05-24 12:47:04 -04:00
ConnorSkees
a01ed981ce
make parsing of toplevel tokens more robust
2020-05-24 07:43:54 -04:00
ConnorSkees
90f7023896
handle ( and ) at toplevel
2020-05-23 16:36:11 -04:00
ConnorSkees
130177d9fe
allow + in selectors
2020-05-23 12:06:04 -04:00
ConnorSkees
eca952b201
handle toplevel closing curly brace
2020-05-23 11:59:04 -04:00
ConnorSkees
2102781f62
create structure for identifiers
...
it looks like rustfmt also updated during this commit, so there are some
formatting changes
2020-05-22 18:21:18 -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
ConnorSkees
9a6c8ce019
add string interning
...
this seems to improve performance by ~20% as well as significantly
decrease memory usage
2020-05-21 22:46:40 -04:00
ConnorSkees
117dc453e2
test for toplevel @ and &
2020-05-21 14:21:40 -04:00
ConnorSkees
c68576bb23
refactor parsing of toplevel variables
2020-05-21 13:25:37 -04:00
ConnorSkees
6b9f68922f
allow non-ascii alphanumeric characters in selectors
2020-05-21 13:09:20 -04:00
ConnorSkees
b94a2403d0
fix panics related to toplevel hash and quotes
2020-05-21 12:21:52 -04:00
ConnorSkees
67091115db
better handle - at the start of idents
2020-05-21 12:06:42 -04:00
ConnorSkees
a63e139cd8
handle ` at toplevel
2020-05-21 01:04:11 -04:00
ConnorSkees
28d5fdf636
handle ! at toplevel
2020-05-21 01:01:02 -04:00
ConnorSkees
c1ed4b3121
handle , at toplevel
2020-05-21 00:46:06 -04:00
ConnorSkees
38ffb5fe31
don't eat first char of loud comment
2020-05-20 22:39:31 -04:00
ConnorSkees
de2173cc31
refactor parsing of toplevel comments
2020-05-20 21:01:07 -04:00
ConnorSkees
d39a45090a
separate media and unknown at rules
2020-05-20 20:13:53 -04:00
ConnorSkees
b58ed29fd0
add more span information
...
this resolves a lot of panics that occurred when there was no more input
2020-05-17 00:35:07 -04:00
ConnorSkees
eea8bdbc25
allow escapes at the start of selectors
2020-05-16 16:15:11 -04:00
ConnorSkees
66f24c474d
fix build on wasm
2020-05-05 19:12:17 -04:00
ConnorSkees
05b78a3ddd
add profiling feature
2020-05-01 15:43:43 -04:00
ConnorSkees
269f37034a
clippy
2020-04-28 08:27:35 -04:00
ConnorSkees
8711e61398
refactor stylesheet into separate file
2020-04-27 15:53:43 -04:00