Pygments YAML Lexer (from Spec Update)

Jeff Kowalczyk <jtk-/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
Oren Ben-Kiki wrote:
> (imminent) updated 1.1 YAML spec containing the updated productions.

As the executable spec update gets finalized, would it be possible to emit
productions in a form that would make a YAML lexer for Pygments easy,
perhaps trivial to implement?

http://pygments.org/docs/lexerdevelopment/

YAML support in Pygments would be of relatively high value to YAML, since
it is the default syntax highlighter in the next version of the popular
Project/SCM package Trac.

Sidebar: would Pygments RegexLexer be sufficient to lex YAML syntax?

Without much parser knowledge, from this list's discussions I've come to
expect that a coloring YAML lexer might not need the indentation
state/context as would be required by YAML parser.

Thanks.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
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.