From de51e72a3c6a84301baf82620cea625bbd570fa6 Mon Sep 17 00:00:00 2001 From: Adam Jimenez Date: Tue, 18 Mar 2014 16:01:33 +0000 Subject: [PATCH] missing bitwise xor function Fixes error: ``` [object Object] has no method 'Node_Expr_BitwiseXor' ``` Which results from using xor e.g: ``` error_reporting(E_ALL ^ E_NOTICE); also reported to phpjs project: https://github.com/niklasvh/php.js/pull/48 --- lib/ace/mode/php/php.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ace/mode/php/php.js b/lib/ace/mode/php/php.js index 12786baa..a1abc609 100644 --- a/lib/ace/mode/php/php.js +++ b/lib/ace/mode/php/php.js @@ -4810,6 +4810,16 @@ PHP.Parser.prototype.Node_Expr_BitwiseOr = function() { }; +PHP.Parser.prototype.Node_Expr_BitwiseXor = function() { + return { + type: "Node_Expr_BitwiseXor", + left: arguments[ 0 ], + right: arguments[ 1 ], + attributes: arguments[ 2 ] + }; + +}; + PHP.Parser.prototype.Node_Expr_BitwiseNot = function() { return { type: "Node_Expr_BitwiseNot",