Giter VIP home page Giter VIP logo

Comments (8)

junichi11 avatar junichi11 commented on September 27, 2024

Does it mean a typing hook feature?

from netbeans-php-enhancements.

fanphp avatar fanphp commented on September 27, 2024

yes, something like that!
Actually, if I type

$work = array( 'bar' => .... );    << plugin recognizes the array structure and works well

$dontWork = [ 'bar' => ....] ;    << plugin does not recognize the new PHP array notation  and does not work
?>

Thanks in advance!

from netbeans-php-enhancements.

junichi11 avatar junichi11 commented on September 27, 2024

Okay, I'll fix it. Thanks.

from netbeans-php-enhancements.

junichi11 avatar junichi11 commented on September 27, 2024

Fixed.

@fanphp Could you please test it? (Please try testing some cases if possible)
https://github.com/junichi11/netbeans-php-enhancements/releases/tag/v0.9.0 (0.9.0.1-dev)
If there is no problem, I'll update version number. Then, create a new nbm.

NOTE

Now, It works inside of both array() and [].
It means it works also array access cases. e.g.

$array = ["foo" => "bar"];
$array[|]; // here

But I think that "=" is not used there. If you know the case using it, please let me know.

Thanks.

from netbeans-php-enhancements.

junichi11 avatar junichi11 commented on September 27, 2024

The following is valid:

$array1 = ["foo" == "bar"];
$array2 = ["foo" === "bar"];

So, I'll implement as the following:

  • just remove ">" before "=" is inserted when the caret position is here "=>|" (i.e. "=>" => "==")
  • just do nothing when the caret position is here "==|" (i.e. "==" => "===")

from netbeans-php-enhancements.

fanphp avatar fanphp commented on September 27, 2024

Hi,
it works well now, I've downloaded and tested the new plugin version. Thanks at all!!!!

from netbeans-php-enhancements.

junichi11 avatar junichi11 commented on September 27, 2024

Thanks for testing it ๐Ÿ‘
I'll update version after I committed the above changes.

from netbeans-php-enhancements.

junichi11 avatar junichi11 commented on September 27, 2024

New version is available:
https://github.com/junichi11/netbeans-php-enhancements/releases/tag/v0.9.1

from netbeans-php-enhancements.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.