Is this possible w/ vim's syntax highlighting?

On Wednesday, December 9, 2020 at 10:56:35 AM UTC+2 Ron Aaron wrote:

> 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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/fc9e9cb6-9305-4f43-8de6-4a5f165f756en%40googlegroups.com.

Reply via email to