dart-lang / csslib

A library for parsing CSS.
https://pub.dev/packages/csslib
BSD 3-Clause "New" or "Revised" License
95 stars 38 forks source link

fix the reported span for expressions #167

Closed devoncarew closed 1 year ago

devoncarew commented 1 year ago

Generally it looks like spans are only correct for the start position of a node. For example, for an Expressions node (a list of Expressions), the span would correspond with the first token from the first expression. We'd need to change how the parser worked in order for this library to be useful for something like producing minimal edits of css.

kevmoo commented 1 year ago

@leonsenft ?