[javascriptlint-commit] SF.net SVN: javascriptlint: [172] trunk/pyjsl/lint.py
Status: Beta
Brought to you by:
matthiasmiller
From: <mat...@us...> - 2008-03-20 21:28:03
|
Revision: 172 http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=172&view=rev Author: matthiasmiller Date: 2008-03-20 14:28:00 -0700 (Thu, 20 Mar 2008) Log Message: ----------- warn against unrecognized control comments Modified Paths: -------------- trunk/pyjsl/lint.py Modified: trunk/pyjsl/lint.py =================================================================== --- trunk/pyjsl/lint.py 2008-03-20 20:57:33 UTC (rev 171) +++ trunk/pyjsl/lint.py 2008-03-20 21:28:00 UTC (rev 172) @@ -66,6 +66,8 @@ keyword = control_comment.lower() else: keyword = control_comment.lower().split()[0] + if not keyword in control_comments: + return None parms = control_comment[len(keyword):].strip() return (comment, keyword, parms) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |