When using flow generics for functions at the same time as putting arguments in multiple lines the syntax highlighting breaks. Here's a simple example:
You will see that the last const is not highlighted properly anymore. I had the same problem with babel-sublime, so it might actually be a problem with the babel/flow parser? I'm not really sure.
This is a limitation in sublime's regex engine where it can't match against multi line, this is why it works when you put everything on the same line :/ https://github.com/borela/naomi/issues/25
When using flow generics for functions at the same time as putting arguments in multiple lines the syntax highlighting breaks. Here's a simple example:
You will see that the last
const
is not highlighted properly anymore. I had the same problem with babel-sublime, so it might actually be a problem with the babel/flow parser? I'm not really sure.