HoriSun / closure-compiler

Automatically exported from code.google.com/p/closure-compiler
0 stars 0 forks source link

Parse error on my php code #1319

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to compile a php code in closure compiler and I get a parse error as 
follows: 

JSC_PARSE_ERROR: Parse error. primary expression expected at line 1 character 1
<div id="featured-slider">

Please I need help on what exactly this means.
Thanks.

Original issue reported on code.google.com by moitivat...@gmail.com on 26 Nov 2014 at 4:31

GoogleCodeExporter commented 9 years ago
did you find out? I'm stuck there too

Original comment by failmuch...@gmail.com on 16 Apr 2015 at 5:28

GoogleCodeExporter commented 9 years ago
This is a JavaScript compiler, not a PHP compiler. It's unlikely that your PHP 
will parse as valid JavaScript.

Original comment by tbreisac...@google.com on 16 Apr 2015 at 5:42

GoogleCodeExporter commented 9 years ago
I'm using a wordpress site so can the PHP code be removed so the compiler will 
be valid? Thanks for the help!

Original comment by failmuch...@gmail.com on 16 Apr 2015 at 7:32

Attachments: