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 - PHP coloring in fragment in JS variable declaration is overriden by JavaScript
Summary: PHP coloring in fragment in JS variable declaration is overriden by JavaScript
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: PC Linux
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-18 13:56 UTC by Vladimir Riha
Modified: 2013-05-31 08:20 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 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.