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 256012 - Constant get dissapear
Summary: Constant get dissapear
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-19 08:25 UTC by fiala.premysl
Modified: 2016-05-25 07:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Left before. Right after formatting. (14.65 KB, image/png)
2015-10-19 08:25 UTC, fiala.premysl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fiala.premysl 2015-10-19 08:25:36 UTC
Created attachment 156793 [details]
Left before. Right after formatting.

Scenario: see atttachment

When got additional "'" in constant list, Formatting will delete one of the "const" keywords AND rest of the syntax-broken constant (see attachment).

Note: constant names should have underscore.
Comment 1 Tomas Mysik 2016-05-25 07:32:39 UTC
Unfortunately, you are formatting code with syntax errors. It means that the result is unpredictable as formatting is based on AST. Sorry for inconveniences.

Thanks for reporting.