From e3d7a1acc5b3d5564f9c0bb80aee6521ffffeb3f Mon Sep 17 00:00:00 2001 From: Corban Brook Date: Fri, 29 Jan 2010 21:35:32 -0500 Subject: [PATCH] #57 - Fixed parse bug --- processing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processing.js b/processing.js index 1a7fdd652..efb8e4425 100644 --- a/processing.js +++ b/processing.js @@ -109,7 +109,7 @@ }); // int|float foo; - var intFloat = /(\n\s*(?:int|float)(?!\[\])*(?:\s*|[^\(;]*?,\s*))(\w+)\s*(,|;)/i; + var intFloat = /(\n\s*(?:int|float)(?!\[\])*(?:\s*|[^\(;]*?,\s*))([a-zA-Z]\w+)\s*(,|;)/i; while( intFloat.test(aCode) ){ aCode = aCode.replace( new RegExp( intFloat ), function( all, type, name, sep ){ return type + " " + name + " = 0" + sep;