rouge-ruby / rouge

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

Highlight shortened lists for syzlang DSL #1808

Closed xairy closed 2 years ago

xairy commented 2 years ago

Update the lexer for syzlang DSL to allow processing inputs with lists and syscall arguments replaced with .... This is useful for highlighting snippets that are shortened for readability.

Also add tests for the new behavior.

xairy commented 2 years ago

Hi @tancnle! Could you please take a look at this pull request when you get a chance? It's a short improvement for the syzkaller-related lexers you merged recently - should be straightforward to review. Thanks!

tancnle commented 2 years ago

Nice one. Thanks @xairy. The change LGTM 🚀