From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755972AbeASQTF (ORCPT ); Fri, 19 Jan 2018 11:19:05 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:51495 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755734AbeASQS4 (ORCPT ); Fri, 19 Jan 2018 11:18:56 -0500 X-IronPort-AV: E=Sophos;i="5.46,381,1511823600"; d="scan'208";a="309847340" Date: Fri, 19 Jan 2018 17:18:54 +0100 (CET) From: Julia Lawall X-X-Sender: jll@hadrien To: SF Markus Elfring cc: cocci@systeme.lip6.fr, Masahiro Yamada , Himanshu Jha , LKML , kernel-janitors@vger.kernel.org, Gilles Muller , "Luis R. Rodriguez" , Michal Marek , Nicolas Palix Subject: Re: Coccinelle: zalloc-simple: Checking consequences from the usage of at signs in Python strings In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-914161247-1516378735=:3668" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --8323329-914161247-1516378735=:3668 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Fri, 19 Jan 2018, SF Markus Elfring wrote: > > I removed the blank line at EOF, > > then applied to linux-kbuild/misc. > > This script for the semantic patch language is using the at sign within string > literals for Python code. > > It is nice when this character seems to work also with the current software. So it works, but you are complaining anyway? > How does its usage fit to the following information in the SmPL manual? > > https://github.com/coccinelle/coccinelle/blob/bf1c6a5869dd324f5faeeaa3a12d57270e478b21/docs/manual/cocci_syntax.tex#L50 > > “… > Furthermore, @ should not be used in this code. > Spatch scans the script code for the next @ and considers that to be the > beginning of the next rule, even if @ occurs within e.g., a comment. > …” I guess the conclusion is that it woks in strings (which are pretty universal) and not in comments (which are language specific). julia > > See also: > Configuration or escaping of @ characters for embedded programming language scripts > https://github.com/coccinelle/coccinelle/issues/36 > > Regards, > Markus > -- > To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > --8323329-914161247-1516378735=:3668--