junichi11 opened a new pull request #2894:
URL: https://github.com/apache/netbeans/pull/2894


   https://issues.apache.org/jira/browse/NETBEANS-4443
   
   - https://wiki.php.net/rfc/named_params
   
   #### Part 3
   Don't highlight(as the keyword color) parameter names when they are keywords
   
   e.g.
   ```php
   test(array: [1, 2], default: "default");
   ```
   
   Notes:
   
   - "default:" is used in a switch statement
   - "true:", "false:", and "null:" can be used with a ternary operator
   - "else:" is used in alternative syntax for a control structure
   
   
![nb-php80-named-arguments--reserved-keywords-coloring](https://user-images.githubusercontent.com/738383/114974431-55c65180-9ebd-11eb-85da-365897d38e1c.jpg)
   
   
   #### Part 4
   
   - Support for code completion for parameter names
   
   
![nb-php80-named-arguments-cc](https://user-images.githubusercontent.com/738383/114974451-6080e680-9ebd-11eb-8d8f-5b4f64d15fc0.jpg)
   
   
   #### Part 5
   
   - Add whitespace when a parameter name is added via Code Completion
   
   When a parameter name is added via Code Completion, the inserted code is
   formatted. However, the whitespace is removed because 
`functionName(paramName: );` is broken code.
   
   ```php
   
   function test($paramName) {}
   
   // before
   test(paramName:);
   
   // after
   test(paramName: );
   ```
   
   #### Part 6
   
   - Highlighting for Named Arguments
   
   ##### NetBeans
   
   
![nb-php80-named-arguments-coloring-netbeans](https://user-images.githubusercontent.com/738383/114974519-7ee6e200-9ebd-11eb-9c41-624def168b1c.jpg)
   
   ##### FlatLafDark
   
   
![nb-php80-named-arguments-coloring-dark](https://user-images.githubusercontent.com/738383/114974531-84442c80-9ebd-11eb-8fc7-d70469f69633.jpg)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to