From 6a7d6bc1d0c9e8855e8c5c54718270af83b499c7 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sun, 13 Jul 2014 11:30:09 +0000 Subject: [PATCH] Detect private functions defined using variable assignment. This detects functions defined as follows: local foo foo = function() ... end git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1531 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- compiler.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler.pl b/compiler.pl index 8d1e3e4..dda53bc 100644 --- a/compiler.pl +++ b/compiler.pl @@ -227,6 +227,10 @@ sub ParseDirectory { $psm{$1} = true; } + while ($psm =~ m/(\w+)\s*=\s*function\s*\(/g) + { + $psm{$1} = true; + } } if ($content =~ m/(.*)<\/public-static-properties>/s) -- 1.7.9.5