postcss-values-parser icon indicating copy to clipboard operation
postcss-values-parser copied to clipboard

Options for initial line/column values

Open thorn0 opened this issue 5 years ago • 1 comments

Feature Use Case

When CSS values are parsed as part of CSS files, for AST consumers (e.g. code formatters), it is sometimes more convenient if the location data of all AST nodes is relative to the file, not to separate values.

Feature Proposal

Add parser options initialLine and initialColumn.

thorn0 avatar Mar 17 '20 21:03 thorn0

I'd probably go with sourceLine and sourceColumn to give a better context. But nice idea that.

shellscape avatar Mar 18 '20 14:03 shellscape