Several issues with JavaScript lexer

Issue #1366 new
Timotheus Kampik
created an issue

I identified a set of issues with the JavaScript lexer when working on better JS syntax highlighting for a popular Sphinx theme:

  • const should be class .kd
  • arrow function=> and spread operator ... should be class .o
  • functions should get own class
  • all global variables and their properties should be added to class .nb
  • difference between names after var + let vs. const

Does this make sense to you? Would you review & merge a PR that fixes (at least some of) the issues?

Comments (0)

  1. Log in to comment