check-code: remove simple quotes first
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Tue, 16 Mar 2010 16:39:17 +0100
changeset 10707 4eaf1b746499
parent 10706 d8d1b56d4519
child 10708 61c52fedbd45
check-code: remove simple quotes first
contrib/check-code.py
--- a/contrib/check-code.py	Tue Mar 16 01:16:19 2010 +0100
+++ b/contrib/check-code.py	Tue Mar 16 16:39:17 2010 +0100
@@ -96,10 +96,10 @@
 ]
 
 pyfilters = [
+    (r'''(?<!")(")(([^"\n]|\\")+)"(?!")''', repquote),
+    (r"""(?<!')(')(([^'\n]|\\')+)'(?!')""", repquote),
     (r"""(''')(([^']|\\'|'{1,2}(?!'))*)'''""", repquote),
     (r'''(""")(([^"]|\\"|"{1,2}(?!"))*)"""''', repquote),
-    (r'''(?<!")(")(([^"\n]|\\")+)"(?!")''', repquote),
-    (r"""(?<!')(')(([^'\n]|\\')+)'(?!')""", repquote),
     (r"( *)(#([^\n]*\S)?)", repcomment),
 ]