On Thu, May 1, 2008 at 12:17 AM, Dasn <[EMAIL PROTECTED]> wrote:

>  $ cat test.c
>  #define MAX 12
>  #define PIPE_SIZE  (12)
>
>  $ vim -Nu NONE "+syn on" test.c
>
>  Please note the PIPE_SIZE.

It works fine for me.  Both MAX and PIPE_SIZE are highlighted
as macros  (cDefine highlight group).  I'm using vim-7.1.293
(huge) on Linux x86 in a gnome terminal.

By the way, you may want to put this in your ~/.vimrc in order
to see the highlight group under the cursor:

" top #99: How to tell what syntax highlighting group *that* is
" see: http://vim.sourceforge.net/tips/tip.php?tip_id=99
map  <F10>     :echo "hi<"
\ . synIDattr(synID(line("."),col("."),1),"name") . '> trans<'
\ . synIDattr(synID(line("."),col("."),0),"name") . "> lo<"
\ . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name")
\ . ">"<CR>

When the cursor is on MAX or PIPE_SIZE, pressing F10 shows:

hi<cDefine> trans<cDefine> lo<PreProcPreProc>

-- Dominique

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui