rouge-ruby / rouge

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

Add APL Lexer #1879

Open razetime opened 1 year ago

razetime commented 1 year ago

This PR adds a lexer for the APL array programming language. APL is efficient at expressing algorithms in terms of arrays.

J (which already has a lexer) is similar in nature, and is derived from APL's ideas. The highlighting is similar to language-apl from the Atom text editor, and tests use example code from @abrudz and Dyalog/RIDE.