AST:
- Rename `interpolatedVariable` to `interpolation`
- Rename `functionBody` to `arguments`
- New node type `conditionalStatement`
- Remove unused node types
Parsing rules:
- Interpolations are ok as arguments, inside nth selector and within identifiers
- Functions are ok as arguments
- Spaces are optional after declDelim
- Check for unary operator in arguments
- Parse operators inside arguments (#16)
- Remove spaces from the end of includes
- Every argument can be escaped string
- Braces around arguments are ok
- Equality and inequality signs are ok as operators
API:
- srcToAST({src: 'string', syntax: 'css', needInfo: true, rule: 'stylesheet'})
- astToSrc()
- astToString()
Tests:
- Add more tests
- Place test files inside rule directory
- Use 'min' reporter instead of 'spec'
- Add Travis config
- Divide log and test scripts
@include nani() { color: tomato }
is valid syntax.arguments
(less and sass only)commentML
commentSL
(less and sass only)condition
(sass only)default
(sass only)escapedString
(less only)include
(less and sass only)loop
(sass only)mixin
(less and sass only)parentselector
(less and sass only)placeholder
(sass only)propertyDelim
variable
(less and sass only)varialeList
(less and sass only)srcToCSSP
-> cssToAST
csspToSrc
-> astToCSS
csspToTree
-> astToTree
gonzales.cssToAST({css: a, syntax: b, rule: c, needInfo: d})
gonzales.astToCSS({ast: ast, syntax: syntax})
make
to npm
_0
are identifiers now.|
.not(..)
pseudo-class special support: https://github.com/css/csso/issues/111