joshtemple / lkml

A speedy LookML parser & serializer implemented in pure Python.
MIT License
166 stars 31 forks source link

Include line numbers in syntax tokens and nodes #68

Closed joshtemple closed 2 years ago

joshtemple commented 2 years ago

lkml collects the line numbers of Lexer tokens, but never transfers them to the parse tree during parsing. This is a useful feature for things like style checkers that need to tie a SyntaxNode or SyntaxToken to a specific line of LookML.