Comments (8)
Does it mean a typing hook feature?
from netbeans-php-enhancements.
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.
Okay, I'll fix it. Thanks.
from netbeans-php-enhancements.
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.
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.
Hi,
it works well now, I've downloaded and tested the new plugin version. Thanks at all!!!!
from netbeans-php-enhancements.
Thanks for testing it ๐
I'll update version after I committed the above changes.
from netbeans-php-enhancements.
New version is available:
https://github.com/junichi11/netbeans-php-enhancements/releases/tag/v0.9.1
from netbeans-php-enhancements.
Related Issues (20)
- "=>" is added when a caret position is after "=" HOT 2
- Add code folding for both short and long style arrays. HOT 1
- Add netbeans 8.2 support HOT 1
- autocomplete "=>" in foreach statement HOT 1
- Array convert in current file by hostkey HOT 2
- Convert to short list syntax
- Bracket Pair Colorizer HOT 2
- Disable displaying errors from Vendor HOT 6
- Add Netbeans 10 support HOT 1
- Relicense to Apache License, Version 2.0
- โConvert to short array syntaxโ appears in context menu of Java projects HOT 1
- The plugin PHP Editor is requested in implementation version 2. HOT 18
- Can not install on Netbeans 12.2 :: The plugin PHP Editor is required in implementation version 2 HOT 9
- The plugin PHP Editor is requested in implementation version 2. HOT 4
- Netbeans 12.2 : cannot install HOT 10
- Update plugin in NetBeans Plugin Catalog HOT 1
- Double arrow for match expressions and arrow functions HOT 8
- In doubt if 'Java' is the right category HOT 3
- Add actions to set a formatting for PSR
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netbeans-php-enhancements.