This repository was archived by the owner on Dec 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 238
Wrong highlight for a property name #334
Labels
Comments
We're working on this - see #307. |
@50Wliu Thank you, it's a good way to solve the first bug. |
I'd like to throw in another example if it helps. This one's a little more complicated though, since it breaks the highlighting completely: // highlights the contents of the string correctly as a string:
{ func: 'function foo() { return "foo"; }' };
"things are ok";
// now it thinks the string contents are actually a function definition:
{ function: 'function foo() { return "foo"; }' };
"not ok... :(" I filed this in linguist here: github-linguist/linguist#3003; they sent me here. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I just updated the lastest version of language-javascript (v0.112.0) which has the following bugs. I don't know which old version I used but it hasn't these bugs. Also, I think property names should be highlighted (in JSON objects and ES6 classes), it would be a good way to avoid these bugs.
I can use a keyword as a property name in JavaScript, but language-javascript matchs it wrong
The text was updated successfully, but these errors were encountered: