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 167825

Summary: Unsupported alternative syntax
Product: php Reporter: marcusson <marcusson>
Component: EditorAssignee: issues@php <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: bobw
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description marcusson 2009-06-29 19:17:57 UTC
The PHP syntax-highlighter does not support the following (valid) construct:

if ($foo) {
  print "${bar}";
}

Reason is, that NetBeans interprets the curly braces inside the string literal as the closing bracket of the if-clause.
However the following works fine:

if ($foo) {
  print "{$bar}";
}

Both code examples are equal. The highlighter should treat the first code fragment in the same way as the second.
Comment 1 Tomasz Slota 2010-02-10 08:46:39 UTC
reassigning to default owner
Comment 2 Filip Zamboj 2010-09-15 12:29:17 UTC
batch reassigning
Comment 3 Petr Pisl 2011-05-11 12:43:03 UTC
I have fixed this last week.