This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 198905 - Parenthesis and brackets highlighting errors when PHP is embedded in JavaScript code
Summary: Parenthesis and brackets highlighting errors when PHP is embedded in JavaScri...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 09:35 UTC by melight
Modified: 2012-09-26 14:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description melight 2011-05-26 09:35:12 UTC
Example:
if the matching parenthesis are on different sides of the php function (in this example the json object '{' and '}' and the parenthesis of the $.post( ) call) will not be highlighted, but the inner function(data)'s curvy brackets will be highlighted correctly. If we remove the php code completely from this example all highlighting will work as expected.

function pickThisAsMain(imageurl) {
	$.post(someUrl, 
	{'action' : 'set_main', 'imageurl': imageurl, 'post_id' : '<?=phpFunction()?>'},
	function(data){
	});
	}

Product Version = NetBeans IDE 7.0 (Build 201104080000)
Operating System = Windows XP version 5.1 running on x86
Java; VM; Vendor = 1.6.0_22
Runtime = Java HotSpot(TM) Client VM 17.1-b03
Comment 1 Petr Pisl 2011-05-26 14:10:48 UTC
I expect that the js code is in a php file. I'm right?
Comment 2 melight 2011-05-26 15:34:04 UTC
Yup, it is indeed.
Comment 3 Petr Pisl 2011-10-04 13:12:07 UTC
Reproducible
Comment 4 Petr Hejl 2012-09-26 14:21:58 UTC
Fixed for 7.3. Can you verify in 7.3. daily build?