Hello,

the attached patch fixes a small typo in demos/regexp.cocci
(coccinelle-0.2.0rc1):
spatch -parse_cocci demos/regexp.cocci.typo
init_defs_builtins: /usr/share/coccinelle/standard.h
287 288
Fatal error: exception Failure("meta: parse error:
 = File "demos/regexp.cocci.typo", line 33, column 15,  charpos = 287
    around = '~', whole content = identifier foo ~!= ".*foo";
")



bye
        michael
diff -up ./demos/regexp.cocci.typo ./demos/regexp.cocci
--- ./demos/regexp.cocci.typo	2010-01-09 00:07:56.544835229 +0100
+++ ./demos/regexp.cocci	2010-01-09 00:08:23.860776813 +0100
@@ -30,7 +30,7 @@ print "Contains foo: %s" % x
 
 @nocontain@
 type t;
-identifier foo ~!= ".*foo";
+identifier foo !~= ".*foo";
 @@
 
 t foo () {
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to