JS Scripting parsing error

Cannot parse the javascript statement below

var strRepoDate = <%= "\""strRepoDate"\""%>;

0
5 comments

Context please...
-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"

Cannot parse the javascript statement below

var strRepoDate = <%= "\""strRepoDate"\""%>;



0

Context please...

Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = ; or ]]>

I guess we are at the point were some things are beter left unspoken (unchecked) ...

0

Andrei Tokar wrote:

>>Context please...


Context is Javascript of course, but what the expected behaviour should be is an open question, i.e. does this stmt should be red?
What about

var strRepoDate = <%= strQuotedRepoDate %>;


More context would be to say "javascript within a JSP file".

In a straight HTML file that would be invalid javascript.

0

I see the same problem with all constructs inside javascript

0

It seems that same problem appears when mixing CSS Styles and JSP insertions



...

]]>

0

Please sign in to leave a comment.