Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
thvortex opened this issue Oct 12, 2015 · 0 comments
Open

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

thvortex opened this issue Oct 12, 2015 · 0 comments

Comments

@thvortex
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant