Hi all -

I want to have a keyword (user-defined function) highlighted by my syntax 
file.

The code looks like this:

    :  foo  blah blah ;

In this case I want "foo" to be scooped up. What I'm doing now is this:

     syn match colonDef "^\s*:\s\+\zs\S\+"

That highlights the correct thing (e.g. 'foo') where it's defined, but I 
can't figure out how to get it to be highlighted elsewhere in the code 
(e.g. when simply 'foo' appears without a leading colon).

How can I accomplish this?

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/b577076a-4583-412a-8c87-3f34874bdbe5n%40googlegroups.com.

Raspunde prin e-mail lui