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 - Unsupported alternative syntax
Summary: Unsupported alternative syntax
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@php
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-29 19:17 UTC by marcusson
Modified: 2011-05-11 12:43 UTC (History)
1 user (show)

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 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.