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