Review Request 110374: Add support for php 5.4's short array syntax.

Commit Hook null at kde.org
Tue Jul 16 14:25:52 UTC 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110374/
-----------------------------------------------------------

(Updated July 16, 2013, 2:25 p.m.)


Status
------

This change has been marked as submitted.


Review request for KDevelop.


Description
-------

A first step towards support for the new syntax features introduced in PHP 5.4.
This implements parsing support for the short (json-style) array syntax where one can rewrite

$var = array( "key" => "value" );

as

$var = [ "key" => "value" ];


This addresses bug 305779.
    http://bugs.kde.org/show_bug.cgi?id=305779


Diffs
-----

  duchain/tests/expressionparser.h f6eb53032010e9f37106cd5cdc851fa24d9e7b99 
  duchain/tests/expressionparser.cpp 4a906406cf2aec629169366b58aa8c52cea920f1 
  parser/php.g ad60514c22795cbc1aa16a7fc8de2ea696859487 

Diff: http://git.reviewboard.kde.org/r/110374/diff/


Testing
-------

I tested this locally with kdevplatform 1.5.0 and kdevelop 4.5.0.


Thanks,

Heinz Wiesinger

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20130716/466fdccc/attachment.html>


More information about the KDevelop-devel mailing list