5 comments
Comment actions Permalink

Context please...
-


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

Cannot parse the javascript statement below

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



0
Comment actions Permalink

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 <%= strWhateverGarbageIsThat %>; ]]>

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

0
Comment actions Permalink

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
Comment actions Permalink

I see the same problem with all constructs inside javascript blocks inside JSP page. There was a bug earlier saying <%=code%>]]></span> gave an error when embedded in HTML. (http://www.jetbrains.net/jira/browse/IDEA-2119), but that is fixed as of 3386.<br/><br/>Now, I only see a problem with &lt;%=code%. when part of javascript inside JSP.<br/><br/>See attached screenshot.</p><br/><br/>Attachment(s):<br/><a href="http://adm-10980.intellij.net/zendesk-forum-storage/jc/4880343/java_fragment_in_javascript_inside_JSP_page.gif">java_fragment_in_javascript_inside_JSP_page.gif</a><br/>

0
Comment actions Permalink

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


...

]]>

0

Please sign in to leave a comment.