Skip to content
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.

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

Open
sslotsky opened this issue May 29, 2017 · 0 comments
Open

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

sslotsky opened this issue May 29, 2017 · 0 comments

Comments

@sslotsky
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant