namelos
namelos

Reputation: 133

babel stage 0 syntax highlighting in webstorm / intellij idea

I do like jetbrains' IDEs but when I tried to use babel with do expression like

let a = do {
  if(false)
    'Nay'
  else
    'Yay'
}

Same thing happens to :: function bind as well.

The syntax highlighting just messed up because webstorm / intellij idea believe there is a syntax error.

Is there a configuration for this, or just some walk around exists?

Upvotes: 1

Views: 363

Answers (1)

lena
lena

Reputation: 93898

Function bind is there since WebStorm 11.0.3 - see WEB-16614. Do expressions aren't yet supported, please vote for WEB-20609

Upvotes: 2

Related Questions