Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328578 - Anonymous (lambda) function assigned to variable gives 'syntax error' coloring.
Summary: Anonymous (lambda) function assigned to variable gives 'syntax error' coloring.
Status: CLOSED INVALID
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-25 05:12 EDT by Christ van Willegen CLA
Modified: 2020-05-14 11:18 EDT (History)
2 users (show)

See Also:


Attachments
Attachment showing the faulty syntax highlighting. (173 bytes, text/php)
2010-10-25 05:16 EDT, Christ van Willegen CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christ van Willegen CLA 2010-10-25 05:12:29 EDT
Build Identifier: 20100917-0705

When I assign a lambda, or anonymous, function to a variable, the Syntax Checker for PHP does not accept this, and gives "syntax error, unexpected 'function'".

Reproducible: Always

Steps to Reproduce:
1. Assign a lambda function to a variable
2. Observe that the PHP syntax checker draws a red line under 'function' to indicate a syntax error.
Comment 1 Christ van Willegen CLA 2010-10-25 05:16:19 EDT
Created attachment 181620 [details]
Attachment showing the faulty syntax highlighting.

Attachment showing the syntax coloring bug
Comment 2 Roy Ganor CLA 2010-10-25 07:58:10 EDT
you should set your project interpreter to PHP 5.3.

Project > Properties > PHP Interpreter > Enable project specific > PHP 5.3
Comment 3 Kalin CLA 2011-07-29 06:53:09 EDT
Verified according to Comment 2
Closing...