Describe the issue
$ isn't treated as a character valid in identifiers, even though it is allowed in identifiers, and is treated like alphabetic letters and _. This causes e.g. 1 in $1 to be highlighted like a numeric literal.
Which language seems to have the issue?
javascript, typescript
Are you using highlight or highlightAuto?
I assume highlightElement() uses highlightAuto().
Sample Code to Reproduce
The test code is:
const $1 = "buck-one";
const $this = `${$1}`;
const bu$ = "bus";
const $$ = "buck-squared"
console.log(`${new Date()}, ${90 ^ 34}`);
https://jsfiddle.net/Keyacom/0ezu3jbd/9/
Expected behavior
GitHub syntax highlighting correctly doesn't highlight any digits that follow $. Highlight.js must do the same thing. The refrence code block is in the section above.
Additional context
Describe the issue
$isn't treated as a character valid in identifiers, even though it is allowed in identifiers, and is treated like alphabetic letters and_. This causes e.g.1in$1to be highlighted like a numeric literal.Which language seems to have the issue?
javascript,typescriptAre you using
highlightorhighlightAuto?I assume
highlightElement()useshighlightAuto().Sample Code to Reproduce
The test code is:
https://jsfiddle.net/Keyacom/0ezu3jbd/9/
Expected behavior
GitHub syntax highlighting correctly doesn't highlight any digits that follow
$. Highlight.js must do the same thing. The refrence code block is in the section above.Additional context