To of the C syntax extensions in gtk-syntax highlights the "if" keyword a a function. In /usr/share/vim/vimfiles/syntax/clutter.vim: syn keyword clutterFunction [...] if In /usr/share/vim/vimfiles/syntax/gobject.vim: syn keyword gobjectFunction [...] if Reproducible: Always Steps to Reproduce: 1. Turn on syntax hightighting in Vim and use a colourscheme which distinguishes functions from conditionals, (e.g. ":colorscheme bclear"). 2. Open a C sources file. 3. Look of an "if" keyword. Actual Results: "if" is highlighted as a function. Expected Results: "if" is highlighted as a conditional. As a workaround the respective runtime-directives in /usr/share/vim/vimfiles/after/syntax/c.vim can be commented out.
I forgot: The package version is app-vim/gtk-syntax-20110214-r1.
Created attachment 298655 [details, diff] Patch for gtk-syntax-20110214/syntax/clutter.vim and .../gobject.vim. Removed `if` keyword from clutter.vim and gobject.vim. Other files do not contain it. Syntax highlighting is OK after this.
I can confirm this. Indeed those 2 vim files contain an "if" at the end. This is actually already fixed upstream in version 20110314: http://www.vim.org/scripts/script.php?script_id=1000
Created attachment 318118 [details] ebuild for latest version I just copied gtk-syntax-20110214-r1.ebuild and gave it an appropriate name (and removed the $Header line since I don't have that information yet). It inherits "vim-plugin", which I assume contains all the logic to fetch the correct file.
This should be fixed in >=20121015.