147 Commits

Author SHA1 Message Date
ConnorSkees
cc372f4e65 Reexport SassResult 2020-02-16 10:28:15 -05:00
ConnorSkees
ff0b05d74a Refactor SassError to live inside error module 2020-02-16 10:08:51 -05:00
ConnorSkees
c16d6fed4e clippy 2020-02-14 18:28:09 -05:00
ConnorSkees
dafd1f3e0d Refactor internal printing of StyleSheet 2020-02-14 14:55:21 -05:00
ConnorSkees
f6f4eb3e15 Cleanup example code for StyleSheet::print_as_css() 2020-02-14 14:36:16 -05:00
ConnorSkees
fa582b3316 Treat - and _ as the same in identifiers 2020-02-08 17:26:01 -05:00
ConnorSkees
783e43b765 clippy 2020-02-08 17:03:43 -05:00
ConnorSkees
74a81060ba Remove Color tokenkind 2020-02-08 13:16:53 -05:00
ConnorSkees
76b2685894 Lex and parse named colors 2020-02-07 00:10:43 -05:00
ConnorSkees
ffff80109b Implement ident addition 2020-02-02 11:17:23 -05:00
ConnorSkees
6bc96aeff4 clippy and rustfmt 2020-02-02 10:27:08 -05:00
ConnorSkees
bad318aae8 Handle no space between colon when also missing semicolon 2020-02-01 23:22:36 -05:00
ConnorSkees
ea03f71928 Refactor style parsing 2020-02-01 21:59:23 -05:00
ConnorSkees
3b3de2d83b Cleanups to make compiler happy 2020-02-01 19:39:20 -05:00
ConnorSkees
8e42d73c1e Initial implementation of nested styles 2020-02-01 19:33:56 -05:00
ConnorSkees
d464124ae0 Handle !default 2020-01-29 21:02:32 -05:00
ConnorSkees
849cddeea4 Parse (but do not remove) placeholder selectors 2020-01-29 20:02:02 -05:00
ConnorSkees
1761af0a01 Handle toplevel @include 2020-01-26 17:28:39 -05:00
ConnorSkees
52c9905b14 Basic implementation of @charset 2020-01-26 15:27:38 -05:00
ConnorSkees
620e33f541 dbg! on unexpected toplevel token 2020-01-26 13:50:19 -05:00
ConnorSkees
4fdd1ce69a Add error message for toplevel & 2020-01-26 10:53:52 -05:00
ConnorSkees
709ed5c6b5 Handle variables as parameters to function calls 2020-01-26 09:13:39 -05:00
ConnorSkees
199d108213 rustfmt 2020-01-25 20:58:52 -05:00
ConnorSkees
5295d18f02 Create module for builtin functions 2020-01-25 20:58:30 -05:00
ConnorSkees
cdd0ccca16 Refactor AtRule parsing and parse @return 2020-01-25 13:49:25 -05:00
ConnorSkees
a3c668ae83 Refactor 2020-01-25 13:25:38 -05:00
ConnorSkees
b0e1826449 Very basic @function implementation 2020-01-25 13:20:21 -05:00
ConnorSkees
b482a26934 Refactor AtRule parsing 2020-01-25 13:07:55 -05:00
ConnorSkees
53988b377c Refactor AtRuleKind into separate file 2020-01-25 12:43:07 -05:00
ConnorSkees
59cead8ebd Refactor tests into separate directory 2020-01-25 11:06:49 -05:00
ConnorSkees
a61ac3fca3 Refactor arg parsing to separate file 2020-01-25 11:00:29 -05:00
ConnorSkees
7fe9da3d2c Initial implementation of parens in Value 2020-01-25 10:11:46 -05:00
ConnorSkees
9503b3288b Initial implementation of Value 2020-01-25 09:58:53 -05:00
ConnorSkees
4fe74ecf51 Don't run doctests and temporarily disable hyphen concat test 2020-01-25 09:57:44 -05:00
ConnorSkees
30cac02f9c Add IsComment trait and devour_comment utils 2020-01-25 09:54:38 -05:00
ConnorSkees
8acb535347 Remove TokenKind::Unit variant 2020-01-22 00:54:03 -05:00
ConnorSkees
21515214cb Refactor interpolation eating 2020-01-20 18:56:23 -05:00
ConnorSkees
efe056d3c7 Create AtRuleKind::Else variant 2020-01-20 18:21:07 -05:00
ConnorSkees
a7ca888942 Parse styles not ending in semicolons 2020-01-20 18:09:25 -05:00
ConnorSkees
6242ff8417 Move file to let binding (and fix import tests) 2020-01-20 17:01:47 -05:00
ConnorSkees
296bc864fa Handle arbitrarily nested interpolation 2020-01-20 17:01:25 -05:00
ConnorSkees
d85f9d32f6 Make @import tests work 2020-01-20 16:00:37 -05:00
ConnorSkees
75f38ba416 Move #[track_caller] behind feature gate 2020-01-20 13:39:25 -05:00
ConnorSkees
25b4bebdf8 Make everything private except StyleSheet 2020-01-20 13:15:47 -05:00
ConnorSkees
2efdf489ca clippy 2020-01-20 12:17:07 -05:00
ConnorSkees
1cd38f0317 Convert errors to strings for pretty printing 2020-01-20 12:13:52 -05:00
ConnorSkees
058772edb4 Refactor into library and add argument parsing 2020-01-20 11:00:01 -05:00