Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 341830 - Invalid errors when server side code included in <script> region
Summary: Invalid errors when server side code included in <script> region
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: Web (show other bugs)
Version: 3.0.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0.5 P   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-04 14:37 EDT by Chris Jaun CLA
Modified: 2011-04-08 10:53 EDT (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch (16.81 KB, patch)
2011-04-04 14:38 EDT, Chris Jaun CLA
no flags Details | Diff
Updated patch (21.66 KB, patch)
2011-04-06 16:32 EDT, Chris Jaun CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2011-04-04 14:37:46 EDT
<script>
<!--

function fun1(parm){
	fun2(parm);
	alert(parm);
	return;
}

function fun2(parm2){
	<% if(true) {} %>
	alert(parm2);
	return;
}

// -->

</script>


  - Missing semicolon
    - Syntax error on token "_$tag___________________________",
     { expected
Comment 1 Chris Jaun CLA 2011-04-04 14:38:48 EDT
Created attachment 192493 [details]
patch

This is a backport of changes already in 3.2.4 and HEAD.
Comment 2 Chris Jaun CLA 2011-04-06 15:51:36 EDT
Nitin, why did you unreview this?
Comment 3 Chris Jaun CLA 2011-04-06 16:32:35 EDT
Created attachment 192672 [details]
Updated patch
Comment 4 Carl Anderson CLA 2011-04-08 10:53:54 EDT
Committed to R3_0_5_patches