Issue #443 open

New lexer: Tubaina AFC syntax

Anonymous created an issue

I want to contribute a lexer to the project to highlight Tubaina's AFC syntax. Tubaina is a simple markup language (like Markdown and others) to write books and booklets. It's an opensource project:

http://sourceforge.net/projects/tubaina

Here is an example file written in AFC on github: http://github.com/caelum/vraptor/blob/master/vraptor-site/src/guide/en/02-intro-ten-minutes.afc

I wrote a simple lexer to this and want to contribute. The code is here: http://paste.pocoo.org/show/142307/

And here is a simple afc test file: http://paste.pocoo.org/show/142310/

Reported by sergiolopes

Comments (3)

  1. Anonymous

    When the .afc file says xml, does it really mean jsp? Part of the examplefile contains something that's very illegal in xml. The only remaining issue is that jsp != xml. After that's fixed, we can merge it.

    AFC doesn't have a special tag to JSP or even simple HTML. In pratice the [xml] tag is used by everyone that needs something with XML-like syntax. Maybe we should use the more flexible HtmlLexer to [xml] tags instead of the XmlLexer.

  2. thatch

    I'm attaching the diff after I've done basic cleanups.

    When the .afc file says xml, does it really mean jsp? Part of the examplefile contains something that's very illegal in xml. The only remaining issue is that jsp != xml. After that's fixed, we can merge it.

    Georg: I did spot-checking for import cycles and I think it's ok.

  3. Log in to comment