trivago / melody

Melody is a library for building JavaScript web applications.
https://melody.js.org
Apache License 2.0
215 stars 39 forks source link

Parser: More precise location information #148

Closed twbartel closed 4 years ago

twbartel commented 4 years ago

This PR fixes some location information the Parser assigns to nodes in the AST. This enables accurate reproduction of the original source code represented by each AST node.

The motivation here is to enable prettier-plugin-twig-melody to implement <!-- prettier-ignore --> comments.