Natalie Weizenbaum
61da3ec6b7
Disallow all top-level declarations and extend. ( #141 )
...
We were previously allowing declarations and extend in control
directives at the top level of documents, as long as those documents
were only ever imported in a nested context.
2017-05-25 12:18:57 -07:00
Natalie Weizenbaum
d4db75a8f9
Merge pull request #140 from sass/fixes
...
Fix a number of small bugs.
2017-05-19 18:59:17 -07:00
Natalie Weizenbaum
b3a00edec1
Properly parse unary operators after commas.
...
Closes #138
2017-05-18 18:13:33 -07:00
Natalie Weizenbaum
a4a2a26464
Allow /***/ in selectors.
...
Closes #135
2017-05-18 17:56:20 -07:00
Natalie Weizenbaum
e840bd0927
Support "url" as an identifier name.
...
Closes #132
2017-05-18 17:38:54 -07:00
Natalie Weizenbaum
42786fd6cf
Allow Parser.debug() to take any value.
2017-05-18 17:27:31 -07:00
Natalie Weizenbaum
b8c52743f6
Fix analysis errors.
2017-05-18 17:11:32 -07:00
Natalie Weizenbaum
7248cf0e27
Use real generic method syntax.
2017-05-18 17:11:32 -07:00
Natalie Weizenbaum
0556665f64
Fix @supports (not ...). ( #125 )
2017-05-18 17:05:58 -07:00
Natalie Weizenbaum
716157f4bc
Drop support for the reference combinator. ( #123 )
2017-02-22 20:48:56 -08:00
Natalie Weizenbaum
56e41b3ad0
Fix some slash division edge cases.
2017-01-15 16:09:27 -08:00
Natalie Weizenbaum
ad622039bd
Support backslash CRLF in quoted strings.
2017-01-15 15:53:19 -08:00
Natalie Weizenbaum
b95880d629
Improve indented syntax error messages.
2017-01-15 14:37:52 -08:00
Natalie Weizenbaum
84d6c07707
Fix not().
2017-01-15 14:00:25 -08:00
Natalie Weizenbaum
4c95be3e5b
Allow whitespace in indented mixin declarations.
2017-01-14 23:01:29 -08:00
Natalie Weizenbaum
015bb0d79f
Support &1.
2017-01-14 18:27:50 -08:00
Natalie Weizenbaum
b695fa6461
merge with --$variables
2017-01-14 18:25:50 -08:00
Natalie Weizenbaum
247ab93eec
Fix plain import parsing.
2017-01-14 17:53:39 -08:00
Natalie Weizenbaum
6b2d9e519c
Support --$variable.
2017-01-14 17:38:57 -08:00
Natalie Weizenbaum
6bc4fb1c34
Test a unit-parsing edge case on Dart Sass.
2017-01-14 17:06:05 -08:00
Natalie Weizenbaum
d491ab5916
Fix selector error handling.
2017-01-14 15:30:44 -08:00
Natalie Weizenbaum
05acf01e58
Forbid more illegal function names.
2017-01-14 15:08:55 -08:00
Natalie Weizenbaum
eab36eafe5
Fix @import with supports().
2017-01-14 14:56:33 -08:00
Natalie Weizenbaum
989ffcb53c
Forbid & after compound.
2017-01-14 13:43:40 -08:00
Natalie Weizenbaum
d4e804f912
Improve custom property indentation.
2017-01-08 23:45:06 -08:00
Natalie Weizenbaum
c507afe46e
Fix whitespace after "...".
2017-01-08 23:29:07 -08:00
Natalie Weizenbaum
d8a299845d
Support nested ; and ! in custom property values.
2017-01-08 22:59:58 -08:00
Natalie Weizenbaum
3c7daa3499
Support interpolation in loud comments.
2017-01-08 22:47:05 -08:00
Natalie Weizenbaum
de69e7ae1b
Parse terse indented mixin syntax.
2017-01-08 17:13:08 -08:00
Natalie Weizenbaum
40be168635
Properly handle "..." after a digit.
2017-01-08 17:12:27 -08:00
Natalie Weizenbaum
8d7a8c7e12
Disallow invalid function names.
2017-01-08 17:12:11 -08:00
Natalie Weizenbaum
06609e4551
Support @-moz-document.
2017-01-08 17:11:52 -08:00
Natalie Weizenbaum
330326c7f7
Fix @at-root query parsing.
2017-01-08 17:11:31 -08:00
Natalie Weizenbaum
ce36eb5b10
Forbid functions and mixins in control directives.
2017-01-06 17:46:38 -08:00
Natalie Weizenbaum
4f686c31c5
Improve formatting for disallowed import errors.
...
We had only been highlighting the argument; now we highlight the entire
rule.
2017-01-06 17:45:35 -08:00
Natalie Weizenbaum
d65978e27a
Ignore empty lines in the indented syntax.
2017-01-06 15:05:16 -08:00
Natalie Weizenbaum
10c02b3362
Don't throw bogus indentation errors.
...
If we saw a line with no spaces, we thought the document couldn't have
any spaces anywhere.
Closes #87
2017-01-06 14:53:12 -08:00
Natalie Weizenbaum
a212999554
Properly parse URLs containing "//" and "/*". ( #84 )
2016-12-29 15:24:45 -08:00
Natalie Weizenbaum
e5fb64e89f
Preserve escapes in non-script identifiers. ( #74 )
2016-12-18 22:42:11 -08:00
Natalie Weizenbaum
65acb8b184
Allow #{...}--1. ( #62 )
2016-12-09 17:22:53 -08:00
Natalie Weizenbaum
9ce2d30e2a
Fix handling of **/. ( #60 )
...
We had been failing to close comments because we'd consume the second
asterisk and fail to register that it might be the one to end the
comment.
See sass/sass-spec#986
Closes #58
2016-12-09 14:02:26 -08:00
Natalie Weizenbaum
dd2fa6f574
Treat ".css" imports as plain imports. ( #48 )
2016-11-18 15:43:21 -08:00
Natalie Weizenbaum
bcd66991f7
Fix parsing of :nth-*-child() selectors.
2016-11-14 11:12:34 -08:00
Natalie Weizenbaum
b7a026096b
Fix bracketed-list parsing. ( #44 )
...
See sass/sass-spec#973
2016-11-13 20:58:24 -08:00
Natalie Weizenbaum
8df94cc4ca
Add support for Unicode ranges. ( #42 )
...
See sass/sass-spec#971
2016-11-13 13:26:52 -08:00
Natalie Weizenbaum
a7f5f4e4e8
Support the Microsoft-style = operator. ( #40 )
...
Closes #31
2016-11-12 21:21:18 -08:00
Natalie Weizenbaum
5f78a8b40a
Fix an expression-parsing bug. ( #38 )
...
A binary operator followed by a unary operator (for example, `1 + - 2`)
would crash the parser.
2016-11-11 17:47:00 -08:00
Natalie Weizenbaum
bab6ebb59a
Track and use colors' original representations.
2016-11-02 17:37:10 -07:00
Natalie Weizenbaum
12397aa8c7
Fix nested declarations in SCSS.
2016-10-30 15:06:32 -07:00
Natalie Weizenbaum
845c1b8d8d
Add missing scanner.expectDone() calls.
2016-10-30 14:54:09 -07:00