Summary: | app-editors/vim-core - faulty highlighting and folding for compound initializers in C syntax | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Cedric Sodhi <manday> |
Component: | Current packages | Assignee: | Vim Maintainers <vim> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | manday |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | C file with correct C99 syntax |
Which version of app-editors/vim-core is that? (In reply to Jeroen Roovers from comment #1) > Which version of app-editors/vim-core is that? vim-core-7.4.22 as well. (In reply to Cedric Sodhi from comment #0) > > Since other VIM users, using the upstream vim of version 7.4 with the > according vanilla C syntax file (v 7.4.22 here) do not reproduce the issue, > I have to assume it's Gentoo specific. > Hi Cedric! I have tried with upstream's C syntax and it doesn't work either (8.0.1188). Please reopen this bug with a link to the syntax file that works on your end and we will add it to our repo. Thanks! |
Created attachment 358490 [details] C file with correct C99 syntax Since other VIM users, using the upstream vim of version 7.4 with the according vanilla C syntax file (v 7.4.22 here) do not reproduce the issue, I have to assume it's Gentoo specific. For one, compound intializers such as myFuncTakingArray3OfInt( (int[]){1,2,3} ) are highlighted as errors (seemingly because the curly braces appear within round parenthesis). Further, folding does not work correctly near such compound intializers. See the attached file where vim claims the block level dropped to 0 from l.6 to l.7.