permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / pythontococci.cocci
1 @a@
2 identifier x;
3 @@
4
5 foo(x);
6
7 @script:python b@
8 x << a.x;
9 y;
10 z;
11 @@
12
13 print y
14 coccinelle.y = x
15 coccinelle.z = "something"
16 print y
17
18 @c@
19 identifier b.y;
20 identifier b.z;
21 identifier a.x;
22 @@
23
24 - bar();
25 + matched_bar(y,z,x);