rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Add lexer for P4 #2049

Open rcgoodfellow opened 1 month ago

rcgoodfellow commented 1 month ago

This PR adds support for the P4 language.

There has been a bit of discussion and use of this lexer in the P4 community here: https://github.com/p4lang/p4-spec/issues/1115#issuecomment-2111018039.

jafingerhut commented 4 weeks ago

I have been using this for a couple of weeks now to good effect in an AsciiDoc version of the P4 language specification. I have already given the submitter comments earlier, which he has incorporated into this PR, so it looks good to me.

rcgoodfellow commented 1 day ago

@tancnle any chance we can work toward getting this in the next release?