1837 Commits

Author SHA1 Message Date
ConnorSkees
357647b19c rustfmt 2020-01-26 15:26:45 -05:00
ConnorSkees
1aa4e6ced2 More Value ops 2020-01-26 15:04:16 -05:00
ConnorSkees
e2a487a59b Handle comments inside call args 2020-01-26 13:53:18 -05:00
ConnorSkees
05eb03a38b Properly handle calling mixin with empty args 2020-01-26 13:52:47 -05:00
ConnorSkees
620e33f541 dbg! on unexpected toplevel token 2020-01-26 13:50:19 -05:00
ConnorSkees
8756adaaaf Truncate keywords (some of them probably shouldn't be keywords) 2020-01-26 12:34:04 -05:00
ConnorSkees
7e5214d629 Handle keywords in Value 2020-01-26 12:28:12 -05:00
ConnorSkees
63dd66f0f7 Handle arbitrary attribute modifiers (kinda) 2020-01-26 12:23:21 -05:00
ConnorSkees
c183ea8c1e Test for returning variable in function and calling functions with variables as parameter 2020-01-26 11:47:46 -05:00
ConnorSkees
65030eb7ea Handle uppercase I in attribute selectors 2020-01-26 11:47:00 -05:00
ConnorSkees
3e45f05d97 Handle whitespace with interpolated super selector 2020-01-26 11:17:48 -05:00
ConnorSkees
4e6ae91825 Handle interpolated super selectors 2020-01-26 11:07:57 -05:00
ConnorSkees
4fdd1ce69a Add error message for toplevel & 2020-01-26 10:53:52 -05:00
ConnorSkees
6c41d7722b @at-rule has a hyphen 2020-01-26 10:53:26 -05:00
ConnorSkees
43c7914622 Don't fail on empty callargs 2020-01-26 10:52:43 -05:00
ConnorSkees
43866eb142 Refactor interpolation 2020-01-26 09:28:44 -05:00
ConnorSkees
709ed5c6b5 Handle variables as parameters to function calls 2020-01-26 09:13:39 -05:00
ConnorSkees
4cbbff259c Implement basic builtin functions 2020-01-25 23:33:45 -05:00
ConnorSkees
16d7dec4cc Fix error message 2020-01-25 21:07:02 -05:00
ConnorSkees
bab22edbe1 Implement basic function calling 2020-01-25 21:02:22 -05:00
ConnorSkees
e0026d5e11 Add basic tests for functions 2020-01-25 20:59:16 -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
9af3670d16 Handle function calls inside Value 2020-01-25 20:56:44 -05:00
ConnorSkees
93497ed4a8 Store Vec<Token> inside @return rather than Value
This is because we want to lazily evaluate variables
2020-01-25 20:55:44 -05:00
ConnorSkees
47ef4c1cda rustfmt 2020-01-25 20:53:51 -05:00
ConnorSkees
fcb1a71557 Test for empty mixins 2020-01-25 18:42:49 -05:00
ConnorSkees
abaa7724c0 Add lazy_static as dependency 2020-01-25 18:40:46 -05:00
ConnorSkees
bb22fb3464 Handle trailing semicolons in Value 2020-01-25 14:11:32 -05:00
ConnorSkees
ddb5b6f32a Make function body a list of AtRule rather than token 2020-01-25 14:11:04 -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
d4e99051c7 Derive Debug and Clone for AtRule 2020-01-25 13:19:32 -05:00
ConnorSkees
b482a26934 Refactor AtRule parsing 2020-01-25 13:07:55 -05:00
ConnorSkees
225526a239 Create AtRule struct 2020-01-25 13:05:40 -05:00
ConnorSkees
6271da50eb Add functions to scope 2020-01-25 12:47:38 -05:00
ConnorSkees
fd951dca26 Make arg parsing agnostic to use 2020-01-25 12:46:51 -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
bd73b1ba3e Handle more binary ops 2020-01-25 10:54:25 -05:00
ConnorSkees
7fe9da3d2c Initial implementation of parens in Value 2020-01-25 10:11:46 -05:00
ConnorSkees
05503b3a16 Tidy comment whitespace 2020-01-25 10:11:26 -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
b0447ddc69 Add + - * / % ops 2020-01-25 09:56:27 -05:00
ConnorSkees
30cac02f9c Add IsComment trait and devour_comment utils 2020-01-25 09:54:38 -05:00
ConnorSkees
87bf73aa47 Derive Eq and PartialEq for Color 2020-01-22 02:16:12 -05:00
ConnorSkees
54aca3b84e Properly handle unknown units 2020-01-22 00:54:43 -05:00