Req #15061 [Opn->Csd]: Exclamation should be treated as operator
| From: | clbustos at surnet dot cl | Date: | Mon, 31 May 2010 21:03:03 +0000 |
| Subject: | Req #15061 [Opn->Csd]: Exclamation should be treated as operator | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-3835@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=15061&edit=1
ID: 15061
Updated by: clbustos@surnet.cl
Reported By: fidian at rumkin dot com
Summary: Exclamation should be treated as operator
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: PHP_Beautifier
Operating System: Linux (various)
Package Version: 0.1.14
PHP Version: 5.2.4
-Assigned To:
+Assigned To: clbustos
Roadmap Versions:
New Comment:
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: clbustos
Token added as T_OPERATOR_NEGATION ON Github.
Previous Comments:
------------------------------------------------------------------------
[2008-11-17 14:01:41] fidian
I figure that it doesn't need to be an operator, just as long as I can
specify actions based on an exclamation point.
------------------------------------------------------------------------
[2008-11-17 12:25:27] fidian
Description:
------------
The exclamation point is not caught by T_OPERATOR as expected.
It would be easy to add the following line to Beautifier.php at about
line 300:
'!' => 'T_OPERATOR',
That way parsed code that looks like (!$varname) could be beautified
into (! $varname) by adding rules to just operators. Right now, one
would have to add code to add whitespace before variables, functions,
and other things.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=15061&edit=1