Open vctrshn opened 3 years ago
It seems like using nested generic types ends up breaking syntax highlighting for the rest of the file.
// @flow const OOF = new Map<number, Map<number, string>>(); export function thing(): Array<number> { return [1, 2, 3]; }
Formatting the code this way doesn't cause the same problem, if it helps track down the root cause:
// @flow const OOF = new Map< number, Map< number, string, > >(); export function thing(): Array<number> { return [1, 2, 3]; }
Thanks in advance for your help!
I commented out this line and it seems to be working on my machine now. Not sure what the ramifications are.
https://github.com/pangloss/vim-javascript/blob/master/extras/flow.vim#L12
It was added in #1161.
It seems like using nested generic types ends up breaking syntax highlighting for the rest of the file.
Minimal Repro
Formatting the code this way doesn't cause the same problem, if it helps track down the root cause:
Thanks in advance for your help!