On 6/13/2006 10:55:19 AM, Pauli Lindgren wrote:
>
>I was trying to highlight function calls in C source
>with the following in c.syn file:
>
> Reserved2 = |A|E+|[|B](
>
>This does highlight the function, if the parenthesis
>is followed by space or some other separator, e.g.
> foo( bar );
> foo(&bar);
>but not
> foo(bar);
I was able to highlight functions on C source by adding the pattern in Symbols section:
Symbols = + - * / % < > = & ^ || ~ ! ? : ( ) [ ] . "," |A|E+|[|B](
But of course this highlights functions with symbols color.
Could it be possible to add a new category in syntax file for functions? It would work like symbols, i.e. separator would not be required. And the color for it could be selected separately.
--
Pauli