Re: Pygments YAML Lexer (from Spec Update) (repost 2)

Jeff Kowalczyk <jtk-/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
On Tue, 20 May 2008 14:54:50 +0300, Kirill Simonov wrote:
> Here is my attempt to write a YAML lexer for Pygments.  It's hardly
> tested, so expect bugs.  I was also unable to choose suitable token
> types from the existing tokens provided by the package, so I had to
> create YAML-specific tokens.
> 
> The lexer file as well as a yaml file I've used for tests are here:
> http://svn.pyyaml.org/pyyaml/trunk/examples/pygments-lexer/
> 
> Thanks,
> Kirill

Thank you very much for the implementation, Kirill. I've integrated the
code as a patch to pygments/lexers/text.py, and bundled it for upstream to
include in pygments:

http://dev.pocoo.org/projects/pygments/ticket/328

Thanks,
Jeff


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.