-
-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
outdated languagesThe language definition is likely outdated from upstreamThe language definition is likely outdated from upstream
Description
I posted this issue originally on the the highlight.js repository but I guess the problem is on this port rather than on the JS library itself:
highlightjs/highlight.js#3743
Describe the issue
Having something like this:
const optionToSelect = $options.find(item => item.text ===text);The whole optionToSelect = $options.find( gets the same color without separating the find function.
I'm not using auto-detection.
Here's the right coloring using the latest version of the JS component highlight.js. Notice the "find" gets colored.
https://jsfiddle.net/chy5nd72/
Sample Code to Reproduce
This is how jsfiddle shows it:

This is how Prism.js shows it:

Metadata
Metadata
Assignees
Labels
outdated languagesThe language definition is likely outdated from upstreamThe language definition is likely outdated from upstream


