rouge-ruby / rouge

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

differentiate Kotlin generic type parameters #1994

Open btwilk opened 1 year ago

btwilk commented 1 year ago

Is your enhancement request related to a problem? Please describe. It can be hard differentiate a standard type (e.g., interface/class) and a generic type parameter.

class Container<Element> {
  ...
  // lots of stuff
  ...
  fun foo(e: Element) { // looking only here it is not clear that Element is a generic type parameter
    ...
  }
  ...
}

Describe the solution you'd like Give generic type parameters a distinct color from interfaces/classes.

Additional context