From: Robert Bradshaw Date: Fri, 8 Apr 2011 05:52:25 +0000 (-0700) Subject: Be a bit more liberal about top-of-the-file directives. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a6472f7b78652f13c277bb1e640dd3982a48cbc2;p=cython.git Be a bit more liberal about top-of-the-file directives. --- diff --git a/Cython/Compiler/Parsing.py b/Cython/Compiler/Parsing.py index 26de5dd2..623af4d7 100644 --- a/Cython/Compiler/Parsing.py +++ b/Cython/Compiler/Parsing.py @@ -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 = {}