From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert.Larice@t-online.de (Robert Larice) Date: Sun, 29 Apr 2018 20:10:07 +0200 Subject: [Cocci] a small nuisance report In-Reply-To: (Julia Lawall's message of "Sun, 29 Apr 2018 19:56:28 +0200 (CEST)") References: Message-ID: To: cocci@systeme.lip6.fr List-Id: cocci@systeme.lip6.fr Julia Lawall writes: > On Sun, 29 Apr 2018, Robert Larice wrote: > >> Hello, >> >> attached is a small example which >> injects a statement and a comment. >> >> It works well, but does'nt do exactly as wanted. >> >> I get : >> >> + j /* comments are overrated */ >> + -= 3; >> >> The comment popped up within the expression instead >> of in front of it. >> no bug, but uggly. > > This problem is solve in the github version of Coccinelle. The problem > was because j was declared as a symbol. > > julia Thank You, so I could work around by simply using an "identifier" perhaps augmented with a regexp match. Best Regards, Robert