You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been making heavy use of some recent early-stage ES proposals, such as Nullish Coalescing. Currently, language-babel is treating the operator as 2 ternaries, and as such, highlighting in the rest of a function block after this operator is a bit broken.
Example:
The first two functions in that screenshot use the nullish coalescing operator, and the closing brackets and parenthesise don't seem to be tokenized anymore (evidenced by the absence of highlighting and absence of scope classes in the inspector for those pieces)
From inspecting the scopes applied to the operator, each ? is wrapped with these scopes: keyword operator ternary js
Howdy!
I've been making heavy use of some recent early-stage ES proposals, such as Nullish Coalescing. Currently, language-babel is treating the operator as 2 ternaries, and as such, highlighting in the rest of a function block after this operator is a bit broken.
Example:
The first two functions in that screenshot use the nullish coalescing operator, and the closing brackets and parenthesise don't seem to be tokenized anymore (evidenced by the absence of highlighting and absence of scope classes in the inspector for those pieces)
From inspecting the scopes applied to the operator, each
?
is wrapped with these scopes:keyword operator ternary js
Atom: 1.26.1
language-babel: 2.84.0
OS: macOS 10.13.4
The text was updated successfully, but these errors were encountered: