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 125685 - Code completions inside double quoted and heredoc strings (include curly syntax).
Summary: Code completions inside double quoted and heredoc strings (include curly synt...
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Victor Vasilyev
URL:
Keywords:
Depends on:
Blocks: 123437
  Show dependency tree
 
Reported: 2008-01-21 15:21 UTC by Victoria Zhukovskaya
Modified: 2008-02-08 12:51 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victoria Zhukovskaya 2008-01-21 15:21:38 UTC
Build 200801201200

Will be useful have  code completions inside double quoted and heredoc strings (include curly syntax).

f.e. have  code completions for:
- variables
- variables, methods and functions inside string with Complex (curly) syntax;
- Escaped characters
- Opening and closing identifiers for  heredoc strings
Comment 1 Victor Vasilyev 2008-02-01 16:16:45 UTC
Fixed with exceptions:

1. Fixed: "variables".

2. Won't be Fixed: "variables, methods and functions inside string with Complex (curly) syntax"
It seems from CC viewpoint there are no any differences between Simple syntax and Complex (curly) syntax, because,
in any cases, a completable expression inside string should be started with '$'.
See the manual:
- Simple syntax: "If a dollar sign ($) is encountered, the parser will greedily take as many tokens as possible to form
a valid variable name. Enclose the variable name in curly braces if you want to explicitly specify the end of the name. "
- Complex (curly) syntax: "... this syntax will only be recognised when the $ is immediately following the {. (Use "{\$"
to get a literal "{$")."

Please, provide a separate issue if my point is wrong. 

3. Escaped characters in the strings is a separate feature. See issue 126499

4. Won't be Fixed: "Opening and closing identifiers for heredoc strings"
- It is not a task of CC.
- There are no way to propose a correct identifier that can be used as a delimiter of Heredoc
  without knowledge about final content of the string. 
  Note, the string is under development and its content is not finalized at the moment of code completion.
  It is responsibility area of PHP developer, but not the IDE.

Comment 2 Victor Vasilyev 2008-02-01 16:18:05 UTC
fixed. see the comment above...
Comment 3 Victoria Zhukovskaya 2008-02-08 12:51:27 UTC
as I understand only the issues fixed only for variables
it is verified for Build 200802080008.