yi-editor / yi

The Haskell-Scriptable Editor
GNU General Public License v2.0
1.51k stars 203 forks source link

Using pandoc parsers as a prototype for syntax highlighting #1120

Open appetrosyan opened 3 years ago

appetrosyan commented 3 years ago

This is just an idea I had, that maybe using some of pandoc's readers is a good idea for syntax aware highlighting. Because it works as a parser, most markup languages can be highlighted pretty accurately. This also has the added benefit of fixing any parsing problems that pandoc may have.