From 17de37c2f6d5cefebdac506340c79bb42df66a3b Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sat, 18 Jun 2011 15:49:53 +0100 Subject: parse @ style closure params --- jarmonbuild/commands.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarmonbuild/commands.py b/jarmonbuild/commands.py index fc422d9..1aaa155 100644 --- a/jarmonbuild/commands.py +++ b/jarmonbuild/commands.py @@ -285,8 +285,8 @@ class BuildJavascriptDependenciesCommand(BuildCommand): params = [] for line in open(depjs_path): line = line.strip() - if line.startswith('//'): - key, val = line.lstrip('/ @').strip().split(':', 1) + if line.startswith('// @'): + key, val = line.lstrip('/ @').strip().split(None, 1) params.append((key.strip(), val.strip())) # Always use the following value for the Content-type header. -- cgit v1.2.3