Closed betoharres closed 7 years ago
What JS syntax files do you have in your rc file? Vim-javascript, yajs.vim, vim-jsx?
This ones:
Plug 'mxw/vim-jsx'
Plug 'othree/yajs.vim'
Plug 'othree/html5.vim'
Plug 'othree/es.next.syntax.vim'
Plug 'HerringtonDarkholme/yats.vim'
I had a hard time trying to make it highlight the way it was shown in old screenshots in the README of this repo, which made me add all the freakin' js syntax plugins. Now it seems that the screenshots of the theme has been updated.
btw, nice theme I really liked ( that's why I opened a issue instead of moving to another theme )
Hmm , interesting. It looks like a syntax plugin is causing issues with jsx tags. I'll see what I can do and figure it out. Thanks for the issue!
Great to hear, thanks!
Also, I found out that disabling othree/yajs.vim
make the redbox dissapear( but somehow it marks &&
with the redbox )
So looks like the missing semi-colons at the end of each const
declaration was the issue.
Noticed it when running it through prettier
I'll note that this isn't technically and issue with oceanic-next, since the default syntax highlighting in vim would still mark this as an error .
Well thanks a lot for looking into it even though it was not a problem of your theme, sorry about that 😳
I was running through this issue few months ago and never thought of try to add a semicolon because I got used to not add them anymore.
Problems summary
Syntax highlight showing a big red box around words like const and function when setting a constant with arrow function outside the main function of the file.
Expected
To render the keywords normally
Environment Information
http://pastebin.com/K8VFktA7
Provide a minimal vim rc with less than 50 lines (Required!)
Screen shot (if possible)