1352 Commits

Author SHA1 Message Date
ConnorSkees
7aaf4e7b92 remove unwraps in Value::to_css_string 2020-06-18 01:08:30 -04:00
ConnorSkees
3be87d38b9 more accurately parse strange hex colors 2020-06-18 00:42:43 -04:00
ConnorSkees
042935f362 further refactor parsing of hex colors 2020-06-17 06:25:40 -04:00
ConnorSkees
00bd9f3847 simplify parsing of hex numbers
as suggested by @pickfire
2020-06-17 06:09:39 -04:00
ConnorSkees
c957c10678 simplify NeverEmptyVec::last, as suggested by @pickfire 2020-06-17 05:51:15 -04:00
ConnorSkees
9ccf49010c resolve clippy lints 2020-06-17 05:48:01 -04:00
ConnorSkees
191f2dfba4 refactor @ import
based on code review by @pickfire here,
https://github.com/connorskees/grass/pull/13
2020-06-17 05:43:43 -04:00
ConnorSkees
74971a7d62 Merge commit 'c9ba131' 2020-06-17 05:34:20 -04:00
ConnorSkees
c9ba1317e0 workaround @ at-root and interpolated super selectors 2020-06-17 05:29:21 -04:00
ConnorSkees
82ffd0ddde arglists are lists too 2020-06-17 05:24:42 -04:00
ConnorSkees
1f82d65eac & is null when at root 2020-06-17 02:35:35 -04:00
ConnorSkees
fdca0ca4f2 improve span information for at-rules 2020-06-17 02:28:35 -04:00
ConnorSkees
4d068596e3 refactor parsing into multiple files 2020-06-16 22:34:01 -04:00
ConnorSkees
c5f5c4d464 create placeholder methods for keyframes, support, and extend 2020-06-16 22:04:06 -04:00
ConnorSkees
5eeee2f01f resolve issue with @ at-root 2020-06-16 22:00:45 -04:00
ConnorSkees
2cd81ccb0f bump version to 0.9.0 2020-06-16 20:50:41 -04:00
Connor Skees
2ad1b70f61
Refactor parsing into struct, rather than standalone functions
reimplement parsing
2020-06-16 20:37:10 -04:00
ConnorSkees
053dac2ecb remove stylesheet module 2020-06-16 20:03:12 -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
8452fd5786 better document todo: 2020-06-14 13:53:46 -04:00
ConnorSkees
632d649fdb if conditions are evaluated lazily 2020-06-08 00:01:14 -04:00
Connor Skees
365325729a
Merge pull request #12 from connorskees/selector-fns
Implement builtin selector functions
2020-06-07 23:29:06 -04:00
ConnorSkees
b135b87a69 resolve clippy lints 2020-06-07 23:11:43 -04:00
ConnorSkees
5dceb27950 test special case :current in is-superselector 2020-06-07 21:34:34 -04:00
ConnorSkees
b609e7a6ab return true for is_superselector of subselector pseudos 2020-06-07 18:20:51 -04:00
ConnorSkees
457eccc59b reimplement @ at-root 2020-06-07 17:49:39 -04:00
ConnorSkees
113e011652 implement simple-selectors 2020-06-07 17:40:24 -04:00
ConnorSkees
e76903cb47 initial implementation of selector-replace 2020-06-07 17:12:01 -04:00
ConnorSkees
e0ab71f73e simple pseudo selector-extend tests 2020-06-07 13:27:54 -04:00
ConnorSkees
d71e996e2b initial implementation of selector-extend 2020-06-07 11:46:34 -04:00
ConnorSkees
6decd85d0d handle invalid escape sequences in variable names 2020-06-04 15:14:00 -04:00
ConnorSkees
3552fbcb99 allow negative values in single arg hsl/hsla 2020-06-03 21:23:33 -04:00
ConnorSkees
29f7b286b0 handle negative values in 1arg rgba? 2020-06-02 17:06:31 -04:00
ConnorSkees
8846a09d1c @ else is case sensitive 2020-06-01 21:44:10 -04:00
ConnorSkees
6a13c6f320 at-rules are case sensitive 2020-06-01 21:35:23 -04:00
ConnorSkees
8390fd8354 resolve clippy lints 2020-05-31 18:21:20 -04:00
ConnorSkees
ccc0c84eee remove all unwraps and todo! from selector parsing 2020-05-31 15:16:25 -04:00
ConnorSkees
d5844e3536 more tests for is-superselector 2020-05-31 08:01:32 -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
Connor Skees
65183dde88
Merge pull request #9 from pickfire/media
refactor media conditional
2020-05-26 13:16:40 -04:00