On 3/14/12, Andrej Mitrovic <andrej.mitrovich at gmail.com> wrote: > how would one use a parser like Pegged for syntax > highlighting? Ok, typically one would use a lexer and not a parser. But using a parser might be more interesting for creating more complex syntax highlighting. :)