permit multiline comments and strings in macros
[bpt/coccinelle.git] / demos / sgrep / a_and_b.sgrep
1 @ rule1 @
2 identifier fn;
3 @@
4
5 fn(...) {
6 <...
7 \+ foo();
8 ...>
9 }
10
11 @ rule2 depends on rule1 @
12 identifier rule1.fn;
13 @@
14
15 - fn(...) {
16 - <...
17 -\+ bar();
18 - ...>
19 - }