80 Commits

Author SHA1 Message Date
ConnorSkees
dcb712e3d4 Refactor unit conversions into separate file 2020-03-19 16:24:31 -04:00
ConnorSkees
061694bd63 Initial implementation of !global (some issues remain) 2020-03-17 20:13:53 -04:00
ConnorSkees
31fbb0a77e rustfmt 2020-03-10 21:23:47 -04:00
ConnorSkees
84e402023a @content boilerplate 2020-03-01 17:06:55 -05:00
ConnorSkees
3181d58441 refactor and cleaning 2020-03-01 14:53:52 -05:00
ConnorSkees
d7b22a41a6 Properly handle & in most contexts 2020-03-01 12:03:14 -05:00
ConnorSkees
6ebadd7869 Add toplevel documentation 2020-03-01 09:08:13 -05:00
ConnorSkees
35163c4a36 Properly scope variables inside for loops 2020-03-01 08:20:59 -05:00
ConnorSkees
7d39b0c86a Evaluate binary ops when inserting variables 2020-02-29 20:09:41 -05:00
ConnorSkees
624cf06f69 clippy 2020-02-29 16:13:57 -05:00
ConnorSkees
5367cb315a Allow multiple semicolons 2020-02-29 15:54:13 -05:00
ConnorSkees
82813fee6f Allow @for to include only styles 2020-02-29 15:29:04 -05:00
ConnorSkees
1b79127cc5 Initial implementation of @for 2020-02-29 11:46:48 -05:00
ConnorSkees
bc2c927aa7 Properly emit @charset 2020-02-28 18:27:32 -05:00
ConnorSkees
a91ab9007e Rename Token method equals_symbol to is_symbol 2020-02-28 01:01:31 -05:00
ConnorSkees
fba6f2eb73 Properly emit quotes after interpolation 2020-02-24 18:58:09 -05:00
ConnorSkees
8c6be57872 Handle curly braces in quotes in styles 2020-02-24 17:47:32 -05:00
ConnorSkees
9877f4a0e0 Attribute selectors are parsed after lexing 2020-02-24 15:07:18 -05:00
ConnorSkees
4c3f5e24ee Handle utf8 input (a bit) 2020-02-23 07:52:14 -05:00
ConnorSkees
53861ccb0d clippy 2020-02-22 17:57:13 -05:00
ConnorSkees
a3b260c0bd Allow nested unknown @ rules 2020-02-22 15:34:32 -05:00
ConnorSkees
71b4729613 Toplevel unknown at rules 2020-02-22 12:02:52 -05:00
ConnorSkees
cacf8c41ab Implement Selector::new() utility function 2020-02-22 10:25:30 -05:00
ConnorSkees
af4917a4e6 correct regression in toplevel & error message
Broken in bb16060ddb8df75b2096966dda1e5c700a494407
2020-02-17 09:53:10 -05:00
ConnorSkees
bb16060ddb rustfmt 2020-02-17 09:37:34 -05:00
ConnorSkees
eab0049566 Use SassError in more places 2020-02-17 09:22:41 -05:00
ConnorSkees
e7de93bd38 Proper error message for undefined variables 2020-02-17 07:55:03 -05:00
ConnorSkees
42cbd685d3 Refactor how function call args are parsed 2020-02-16 21:34:52 -05:00
ConnorSkees
af5c945dfa Return literal unit in StyleSheet::Display 2020-02-16 18:26:35 -05:00
ConnorSkees
87579b181b clippy 2020-02-16 18:03:19 -05:00
ConnorSkees
f57da880b6 fmt 2020-02-16 17:49:37 -05:00
ConnorSkees
1995b5ec6e Error messages in builtins 2020-02-16 11:59:04 -05:00
ConnorSkees
f817598a9d Refactor error handling 2020-02-16 10:54:25 -05:00
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