new lexer request: antlr4 (with example)

Issue #930 new
Anonymous created an issue

I think this is as easy as adding the '.g4' extension that is normally used [1] by these files to the file extension lists in pygments-main/pygments/lexers/

[1] '.g4' is referenced all over the Antlr4 wiki, but here is an example:

Comments (3)

  1. Thomas Beale

    Antlr4 does not appear to be entirely supported. See here ( for example of Antlr4 grammar that was highlighted by Asciidoctor calling Pygment. Source Antlr4 file here :

    There are errors in the regex highlighting and also lexer mode() instructions. I am using the 2.1 version of Pygments.

  2. Log in to comment