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

Typescript lexer bug #1953

Open legacy3 opened 1 year ago

legacy3 commented 1 year ago

Name of the lexer Its the Typescript lexer.

Code sample A sample of the code that produces the bug.

export const AffixMapping: Record<number, number> = {
  // Level 2
  [Affix.Fortified]: MythicPlusAffix.Fortified,
  [Affix.Tyrannical]: MythicPlusAffix.Tyrannical,

  /*
  // DF S1
  // Level 4
  [Affix.Bolstering]: MythicPlusAffix.Bolstering,
  [Affix.Bursting]: MythicPlusAffix.Bursting,
  [Affix.Inspiring]: MythicPlusAffix.Inspiring,
  [Affix.Raging]: MythicPlusAffix.Raging,
  [Affix.Sanguine]: MythicPlusAffix.Sanguine,
  [Affix.Spiteful]: MythicPlusAffix.Spiteful,

  // Level 7
  [Affix.Explosive]: MythicPlusAffix.Explosive,
  [Affix.Grievous]: MythicPlusAffix.Grievous,
  [Affix.Quaking]: MythicPlusAffix.Quaking,
  [Affix.Storming]: MythicPlusAffix.Storming,
  [Affix.Volcanic]: MythicPlusAffix.Volcanic,

  // Level 10
  [Affix.Thundering]: MythicPlusAffix.Thundering,
  */

  // DF S2
  // Level 7
  [Affix.Afflicted]: MythicPlusAffix.Afflicted,
  [Affix.Incorporeal]: MythicPlusAffix.Incorporeal,
  [Affix.Volcanic]: MythicPlusAffix.Volcanic,
  [Affix.Entangling]: MythicPlusAffix.Entangling,
  [Affix.Storming]: MythicPlusAffix.Storming,

  // Level 14
  [Affix.Spiteful]: MythicPlusAffix.Spiteful,
  [Affix.Raging]: MythicPlusAffix.Raging,
  [Affix.Bursting]: MythicPlusAffix.Bursting,
  [Affix.Bolstering]: MythicPlusAffix.Bolstering,
  [Affix.Sanguine]: MythicPlusAffix.Sanguine,
};

It also helps if you can provide a link to a code sample on rouge.jneen.net.

Your website is down but I attached a screenshot: https://i.imgur.com/DFbWunW.png

Additional context In the screenshot it begins to bug in line 71.