vtst / ow

Various Eclipse plugins for web development
http://www.normalesup.org/~simonet/soft/
74 stars 29 forks source link

Soy: Plugin can't parse SoyDoc before {namespace} #257

Open thvortex opened 8 years ago

thvortex commented 8 years ago

We have Closure templates which begin with a SoyDoc comment before {namespace}. The closure compiler doesn't seem to mind so I'm guessing it just treats it as a regular comment. But the plugin treats it as an error, and doesn't parse/syntax highlight the rest of the file. The error produced is:

mismatched input '/**' expecting '{namespace'

Here's an example template file which triggers it:

/**
 * SoyDoc at beginning of file and before {namespace}
 */
{namespace testing}

Another example:

/***********/
{namespace testing}

The plugin shouldn't report it as an error if the closure compiler accepts it.