GeSHi Bug Tracker - GeSHi
Viewing Issue Advanced Details
94 lang tweak have not tried 10-05-06 01:36 10-16-06 19:19
BenBE  
Netocrat  
low  
resolved 1.1.2alpha3  
fixed  
none    
none  
0000094: stdprocs for C not highlighted within compiler defines
When you have something like

#define f(a) sprintf(a);

sprintf will not be highlighted as function although it should (IMHO).
My test source can be found here: http://www.de.ioccc.org/2001/anonymous.c [^]
For examples have a look at anonymous.c of 2001's www.de.IOCCC.org winning sources. I know they are not best coding style, BUT valid C source AND therefore should get highlighted correctly. Maybe you also have a look at all those other winning sources there and add them into you test suite :P

Notes
(0000464)
nigel   
10-05-06 09:33   
Netocrat will know more about this, including any reason for not highlighting them if there is one.
(0000465)
Netocrat   
10-16-06 19:16   
Agreed, that is a bug - the 4 character fix is in the commit of revision 1.17 of languages/c.php.