On Fri, 17 Dec 2010, Michael T wrote: > Julia Lawall <julia <at> diku.dk> writes: > > OK, I'm not very eager to commit this change, because it will break C code > > like: > > > > if (x<y) ... > [snip] > > If this turns out to be good enough to do some things, I can try to figure > > out how to make this depend on some command-line option. > > Thanks! I will test this next week if that is OK. I think that the rules on > the use of [<>] should be enough to keep those cases separate. Thinking about > it quickly, it seems to me that those characters will only be allowed in type > names or in function/method names which include a ':' character *later in the > name*. In other words, I don't think they can appear after the last colon in > a > method name, or in a method name with no embedded colons.
OK, if you feel inspired, you can probable play around with the regular expression in lexer.mll. In the patch you can see the two lines that are relevant; you shouldn't have to change anything else. julia _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
