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 225064

Summary: PHP coloring in fragment in JS variable declaration is overriden by JavaScript
Product: javascript Reporter: Vladimir Riha <vriha>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 7.3   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Vladimir Riha 2013-01-18 13:56:54 UTC
extracted from issue 218049:

<script type="text/javascript">
    var ColorPicker_<?php echo $nameSpace; ?> = new Object();
    ColorPicker_<?php echo $nameSpace; ?>.red = '<?php echo "#FF0000";
?>';</script>

On the 1st line (with var) php code is purple (but "php" is bold purple) while echo should be blue etc.. The next line is correct. It seems to happen only with variable declaration => not so critical as the original issue => P3


Product Version: NetBeans IDE 7.3 RC1 (Build 201301172100)
Java: 1.7.0_10; Java HotSpot(TM) Client VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Linux version 3.2.0-35-generic-pae running on i386; UTF-8; en_US (nb)
Comment 1 Petr Pisl 2013-05-31 08:20:32 UTC
The problem is that the name is generated ColorPicker___UNKNOWN__ for Js Parser. It should be probably just ColorPicker.