fix copy&past bug
authorStefan Behnel <stefan_ml@behnel.de>
Sat, 30 Nov 2013 20:07:38 +0000 (21:07 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Sat, 30 Nov 2013 20:07:38 +0000 (21:07 +0100)
Cython/Compiler/Annotate.py

index 33f0f78..a5d4abf 100644 (file)
@@ -174,9 +174,9 @@ _parse_code = re.compile(
     ur'(?P<refnanny>__Pyx_X?(?:GOT|GIVE)REF|__Pyx_RefNanny[A-Za-z]+)|'
     ur'(?:'
     ur'(?P<pyx_macro_api>__Pyx_[A-Z][A-Z_]+)|'
-    ur'(?P<pyx_c_api>__Pyx_[A-Z][a-z_][A-Za-z_]+)'
+    ur'(?P<pyx_c_api>__Pyx_[A-Z][a-z_][A-Za-z_]+)|'
     ur'(?P<py_macro_api>Py[A-Z][a-z]+_[A-Z][A-Z_]+)|'
-    ur'(?P<py_c_api>Py[A-Z][a-z]+_[A-Z][a-z][A-Za-z_]+)|'
+    ur'(?P<py_c_api>Py[A-Z][a-z]+_[A-Z][a-z][A-Za-z_]+)'
     ur')(?=\()|'       # look-ahead to exclude subsequent '(' from replacement
     ur'(?P<error_goto>(?:(?<=;) *if .* +)?\{__pyx_filename = .*goto __pyx_L\w+;\})'
 ).sub