0b1010 split into a number and a name
The TypeScript lexer had only three number rules. Literals such as 0b1010, 0o17, 0XFF, 1e5 and 1_000 were split into a number and a name, so each part was highlighted separately.
Number rules from the JavaScript lexer
We ported the number rules from the JavaScript lexer: separate rules for binary, octal and hex with a lower- or upper-case prefix, and a float rule that still keeps a fraction and an exponent together, as in 1.5e10. A new number_literals fixture checks all of these cases.