jsl:option explicit is white space sensitive

2012-08-06
2013-09-28
  • R. Schreurs
    R. Schreurs
    2012-08-06

    Today, I wanted to check for undeclared variables in a javascript file. I added /* jsl:option explicit */ on a single line.

    This option is ignored if there is a space between /* and jsl:option.

    If there is a space between explicit and */, or there are two spaces between jsl:option and explicit, the following warning is shown:
    "lint warning: couldn't understand control comment using /*jsl:keyword*/ syntax"

    It would be nice if jsl were insensitive to white space.

     
  • This has been fixed in the latest trunk.