rouge-ruby / rouge

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

Syntax highlighting for Chapel language #687

Open ben-albrecht opened 7 years ago

ben-albrecht commented 7 years ago

Description

Add syntax support for Chapel programming language

Links / references

Motivation

Chapel highlighting is currently supported on GitHub:

proc hi() {
  writeln('Hello Rouge');
}

We'd like to add support to GitLab as well, which uses Rouge.

ben-albrecht commented 7 years ago

If there is documentation or useful examples of converting any of our existing highlighters, such as Pygments -> Rouge, I'd be happy to take a shot at it myself.

stale[bot] commented 5 years ago

This contribution has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days.

ben-albrecht commented 5 years ago

If there is documentation or useful examples of converting any of our existing highlighters,

It looks like there's a guide to follow here:

https://www.rubydoc.info/github/rouge-ruby/rouge/file/docs/LexerDevelopment.md

pyrmont commented 5 years ago

@ben-albrecht Yeah, I added that shortly after coming on board as a maintainer. We have a PR (#1145) with fixes that need to be added but hopefully that's helpful.

tancnle commented 2 years ago

Related PR https://github.com/rouge-ruby/rouge/pull/1743/files