Be a bit more liberal about top-of-the-file directives.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 8 Apr 2011 05:52:25 +0000 (22:52 -0700)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 8 Apr 2011 05:52:25 +0000 (22:52 -0700)
Cython/Compiler/Parsing.py

index 26de5dd2af28543bbd021d7c3b0a89f803d84baa..623af4d7220cb5b026e090f4c342edceec0742d6 100644 (file)
@@ -2794,7 +2794,7 @@ def p_code(s, level=None):
             repr(s.sy), repr(s.systring)))
     return body
 
-COMPILER_DIRECTIVE_COMMENT_RE = re.compile(r"^#\s*cython:\s*((\w|[.])+\s*=.*)$")
+COMPILER_DIRECTIVE_COMMENT_RE = re.compile(r"^#\s*cython\s*:\s*((\w|[.])+\s*=.*)$")
 
 def p_compiler_directive_comments(s):
     result = {}