flow / vim-flow

A vim plugin for Flow
Other
525 stars 52 forks source link

Generic React classes seem to break syntax highlighting / parsing #56

Open sslotsky opened 7 years ago

sslotsky commented 7 years ago

Please see the screenshot for reference. Using the following .vimrc

filetype indent plugin on
syntax on
set ts=2
set sw=2
set autoindent
set expandtab
set number
set ruler
execute pathogen#infect()
set clipboard=unnamedplus
set nowrap
let g:javascript_plugin_flow = 1
let g:jsx_ext_required = 0

Parsing seems to break down when using generics on React component classes. The file shown in the screenshot passes flow checks and compiles without issue, but the red highlighted text indicates a syntax error and highlighting is off in a few places. Hopefully I'm just doing something wrong.

image