On Thu, 2006-08-03 at 14:09, Yakov Lerner wrote:
> 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 ?
Hi Yakov,
My vim version is :
VIM - Vi IMproved 7.0 (2006 May 7, compiled May 23 2006 12:47:54)
Compiled by [EMAIL PROTECTED]
Big version with GTK2 GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
+cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
+cryptv +cscope +cursorshape +dialog_con_gui +diff +digraphs +dnd
-ebcdic
+emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path
+find_in_path
+folding -footer +fork() -gettext -hangul_input +iconv +insert_expand
+jumplist
+keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap
+menu
+mksession +modify_fname +mouse +mouseshape +mouse_dec +mouse_gpm
-mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang
-mzscheme
+netbeans_intg -osfiletype +path_extra -perl +postscript +printer
-profile
-python +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent
-sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static
-tag_any_white -tcl +terminfo +termresponse +textobjects +title +toolbar
+user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace
+wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim
+xsmp_interact
+xterm_clipboard -xterm_save
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2
-I/usr/include/freetype2/config -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -g -O2 -I/usr/X11R6/include
Linking: gcc -L/usr/X11R6/lib -L/usr/local/lib -o vim
-Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0
-lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0
-lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lncurses -lacl -lgpm
And my $VIMRUNTIME/syntax/c.vim 's file's header contains:
" Vim syntax file
" Language: C
" Maintainer: Bram Moolenaar <[EMAIL PROTECTED]>
" Last Change: 2006 May 01
" Quit when a (custom) syntax file was already loaded
if exists("b:current_syntax")
finish
endif
> 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 ?
>
No I donot have custom c.vim syntax file. The version inforamtion on
I tried by replacing completely the ~/.vim/ folder. But still it behaves
like this. I am running on Fedora core 2 system with vim7 upgraded from
vim6.3.
thanks and regards,
Srini..