Re: [code] RFE: python and markdown lexers

From: Mitchell <>
Date: Tue, 3 Feb 2015 09:11:07 -0500 (EST)

Hi Carlos,

On Tue, 3 Feb 2015, Carlos Pita wrote:

> [snip]
> Just another lexer related question:
> I tend to use org mode and rmarkdown (knitr + pandoc) to do what is
> currently and fashionably called reproducible research.That is, light
> markup documents with code and data interspersed with prose. In a
> sense, the "negative" of literate programming.
> So, would it be possible to define an lpeg grammar that combines a
> number of embedded lpeg grammars (say for latex, markdown, r, python,
> etc)? This also applies to the more mundane case of markdown github
> style code blocks.

Yes! See

Grep Textadept's/Scintillua's `lexers/` directory for "embed_lexer" and
you'll find numerous examples.


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Tue 03 Feb 2015 - 09:11:07 EST

This archive was generated by hypermail 2.2.0 : Wed 04 Feb 2015 - 06:44:30 EST