Issue #522 new

Lexer support for JBST syntax

Anonymous created an issue

I've implemented lexer support for JBST client-side template syntax and uploaded it and a few example templates to:

http://gist.github.com/524429

The format is very similar to other ASP/JSP style formats so adapting one of the other lexers was pretty easy. If you could add this to the Pygments project, it would help us out a ton.

I'm not sure where you would like this to go: within "root/pygments/lexers/web.py" since it imports JavascriptLexer and HtmlLexer or "root/pygments/lexers/dotnet.py" since it imports CSharpLexer. So I put it in its own file so that you could do with it what you please.

Let me know if there is anything else I can do. Thanks in advance!

Reported by guest

Comments (3)

  1. Anonymous

    Replying to [ticket:522 guest]:

    I'm not sure where you would like this to go: within "root/pygments/lexers/web.py" since it imports JavascriptLexer and HtmlLexer or "root/pygments/lexers/dotnet.py" since it imports CSharpLexer. So I put it in its own file so that you could do with it what you please.

    The need for CSharpLexer has been removed as this is entirely a JavaScript/Markup based format. So this probably makes most sense in "root/pygments/lexers/web.py".

    I've noticed that there is quite a queue of lexers to be included. If there is anything I can do to make this easier, please let me know. It would really help us out to get this in the next release. Thanks!

    http://gist.github.com/524429

  2. Log in to comment