TS and JS Grammar Extension version: 0.0.53 / latest
Description
Empty character classes, while not very useful, are valid JS/TS and should be supported. This issue is especially noticeable while writing regexes because highlighting breaks whenever you add a new character class.
Code
let a = /foo[]bar/;
let b = /foo[^]bar/;
Will be highlighted as:

Fix
The pattern for character classes is \[([^\]\\]|\\.)+\], right now. Simply changing it to \[([^\]\\]|\\.)*\] (uses * not +) should fix the issue.