cloudhead/less.js — Issue #655: Parser improvements for authoring tools
Author: jason-sanjose
Created: 2012-02-23 00:27:11+00:00
State: open

Similar to #508, there are some missing features that would be helpful to have in the AST

* document-relative start and end offsets for each node
* leave CRLF unchanged, the parser converts these to LF

The index property could be used in pinch, but for nodes like a Selector Element, the reported index value is actually the position before the next Element or the start of the rule block.

e.g. for the rule

```div { color: red }
```

Element("div").index === 4 // expected 0