joshtemple / lkml

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

Make leading and trailing commas SyntaxTokens #64

Closed joshtemple closed 3 years ago

joshtemple commented 3 years ago

Closes #60.

Treats leading and trailing commas as syntax tokens with their own prefixes and suffixes.

In the case of [ , a, b, c , ], the leading and trailing commas themselves must have their own prefixes and suffixes, otherwise it's ambiguous where to assign the space immediately following [ and preceding ].