ConnorSkees
97958b01a7
Implement & only inside selectors
2020-01-11 16:12:23 -05:00
ConnorSkees
ebfeb35341
Refactor Selector to be Vec rather than recursive enum
...
The initial implementation of Selector was a recursive
enum with boxed variants. This new implementation is linear
and relies on only one level of indirection.
2020-01-11 14:51:31 -05:00
ConnorSkees
dc05c8db2d
Handle several nested blocks
2020-01-09 21:30:21 -05:00
ConnorSkees
31b0ea6b34
Link to structs and enums in docs
2020-01-09 20:56:09 -05:00
ConnorSkees
a74d22cce9
Document some internal enums and structs
2020-01-08 20:58:02 -05:00
ConnorSkees
a3ecfbbf3e
Preserve toplevel multiline comments and add tests for them
2020-01-08 20:39:05 -05:00
ConnorSkees
7611dce47a
rustfmt and empty styles css tests
2020-01-07 19:58:38 -05:00
ConnorSkees
fb877fa524
Preserve multiline comments in lexer
2020-01-07 19:58:13 -05:00
ConnorSkees
bc32a5a143
Print file in error
2020-01-07 19:24:37 -05:00
ConnorSkees
8320c3de77
Implement basic at rule parsing and @error
2020-01-07 18:37:28 -05:00
ConnorSkees
46a6fd90f6
rustfmt
2020-01-06 19:23:52 -05:00
ConnorSkees
1d80b00c20
Handle variables on global scope
2020-01-06 19:23:27 -05:00
ConnorSkees
485bb8b94d
Incorporate SassError
2020-01-06 18:55:51 -05:00
ConnorSkees
08ab3261b1
Add more tests for variables
2020-01-06 18:52:37 -05:00
ConnorSkees
bcfd809c92
Fix bug where the entire iterator would be eaten by a comment
2020-01-06 18:45:41 -05:00
ConnorSkees
5688e03b8a
Implement display for Pos
2020-01-06 18:26:32 -05:00
ConnorSkees
26ae7f38b4
Implement basic error handling
2020-01-06 18:26:07 -05:00
ConnorSkees
d2f9fc8e78
Reformat imports
2020-01-06 17:06:37 -05:00
ConnorSkees
ebdb4baf8f
Remove property enum
2020-01-06 17:06:11 -05:00
ConnorSkees
3ba585b40d
Refactor style parsing to separate module
2020-01-06 16:50:16 -05:00
ConnorSkees
3f063709c5
rustfmt
2020-01-06 00:41:15 -05:00
ConnorSkees
f266f2cf0e
Eat whitespace between floating hyphens
2020-01-06 00:40:29 -05:00
ConnorSkees
adc94ffaa5
Lex tokens starting with !
(!important
and !=
)
2020-01-06 00:39:49 -05:00
ConnorSkees
3324a42f49
Add tests for !important and concatenating hyphens
2020-01-06 00:39:02 -05:00
ConnorSkees
cf1317ac79
Add more keywords and ops
2020-01-06 00:25:40 -05:00
ConnorSkees
362a9b4ca2
Move around clones on selectors
2020-01-05 20:55:58 -05:00
ConnorSkees
61a6b5eeeb
Refactor handling of styles to handle spaces and quotes
2020-01-05 20:51:14 -05:00
ConnorSkees
aa4cacec78
Add css tests
2020-01-05 20:27:02 -05:00
ConnorSkees
e3aae97767
Accept _ and - in identifiers
2020-01-05 20:26:47 -05:00
ConnorSkees
a14070b054
Refactor style parsing
2020-01-05 19:47:50 -05:00
ConnorSkees
b756973b08
Add variable whitespace tests
2020-01-05 19:47:24 -05:00
ConnorSkees
874c36a959
Implement basic variable handling
2020-01-05 19:21:58 -05:00
ConnorSkees
85ea52030b
Simplify Display of Whitespace::Newline
2020-01-05 19:21:21 -05:00
ConnorSkees
31fd8f8127
Stop infinite loop when lexing variables
2020-01-05 19:10:43 -05:00
ConnorSkees
b0276d8349
Add tests for variables
2020-01-05 19:09:46 -05:00
ConnorSkees
c6c686d514
Implement Display for Whitespace
2020-01-05 19:09:27 -05:00
ConnorSkees
3d0ae02b0a
clippy & rustfmt
2020-01-05 12:52:50 -05:00
ConnorSkees
b2eb96963c
Refactor css serialization into separate file
2020-01-05 12:45:51 -05:00
ConnorSkees
70b384c199
Make use of Selector::None to remove Option<Selector> where possible
2020-01-05 12:37:50 -05:00
ConnorSkees
c615c5806c
Parse StyleSheet into Css struct and pretty print it
2020-01-05 12:37:02 -05:00
ConnorSkees
3722ca98a0
Consolidate pretty printing structs
2020-01-05 12:35:37 -05:00
ConnorSkees
05d67e404d
implement zip method to combine super selectors
2020-01-05 12:25:03 -05:00
ConnorSkees
e5f70e0a7a
Handle single and multi line comments
2020-01-05 12:22:38 -05:00
ConnorSkees
197129aa6d
Test multiline and deeply nested styles
2020-01-05 12:22:10 -05:00
ConnorSkees
f4278a29b7
Implement lexing, basic parsing, and pretty printing
2020-01-04 22:55:04 -05:00
ConnorSkees
87a4d7084f
Initial commit
2020-01-04 22:53:53 -05:00