julien-duponchelle / vscode-rainbow-end

This extension allows to identify keyword / end with colours.
https://marketplace.visualstudio.com/items?itemName=jduponchelle.rainbow-end
Apache License 2.0
14 stars 14 forks source link

Replace regex parser by a more robust implementation #1

Open julien-duponchelle opened 5 years ago

julien-duponchelle commented 5 years ago

As soon vscode release: Provide an API for advanced/semantic source highlighting https://github.com/Microsoft/vscode/issues/585

We can publish a more robust implementation.

polvalente commented 4 years ago

As discussed in #16, I think it may be time to move forward with this plan. At least, change things up a bit in the token matching functionality. There are some limitations imposed by the usage of \b tokens as word boundaries, and we also have some problems with multiple modes (such as ignore-blocks, single-line expressions and opening tokens being the same as closing tokens).

As such, I think maybe we could move to using an external library to do the parsing heavy-lifting. I'm not familiar with the JS tooling for this, but Jison seems like a good lead.