I would like to have automatic user defined types syntax highlighting in Vim.
So that if I have for example a syntax match group for classes 
and have this in the buffer

1   class mytype {
2   //...
3   };
4
5   mytype a;
6   mytype b;

"mytype" is automatically highlighted on lines 5 and 6 besides 1.

I would like to modify the source code rather than use scripts, for 
responsiveness of highlight and efficiency reason.
I am reading src/syntax.c and I'm trying to answer these questions:

1) Which data structure holds the syntax information of a certain group?

2) Which function triggers on a match event to update this structure?

2) Can I extract from the structure the strings to be highlighted?

Any help appreciated, 
Thanks

-- 
-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui