On 8/3/06, Srinivas Rao. M <[EMAIL PROTECTED]> wrote:
I am facing this syntax highlighting problem here for the following code segment. The problem is if we put this code in a file having .c extension. The same macro color is shown for the main() function also. Does anyone else faced this problem with vim7 ?regards, s ===========somefile.c===================== #define GET_TAG_STRING(tagFeildPtr) { \ *feildEndP = 'a'; \ *feildEndP+1 = '\0'; \ } main() { }
For me (vim7), main() is highlighted correctly. What is your vim version ? What is version of your $VIMRUNTIME/syntax/c.vim file ? Do you possibly have some custom additions in ~/.vim/after/syntax/c.vim ? And if you do, does highlighting changes when you temporarity rename your ~/.vim/after/syntax/c.vim file ? Yakov
