From 14fa86bb11d7564dc47185e30f45fb92c50ef16e Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Sun, 13 May 2012 20:29:01 +0100 Subject: Dots are allowed in function names, luacov needs to know this --- extras/luacov/src/bin/luacov | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extras/luacov/src/bin/luacov b/extras/luacov/src/bin/luacov index c834958..6a24bc6 100755 --- a/extras/luacov/src/bin/luacov +++ b/extras/luacov/src/bin/luacov @@ -75,8 +75,8 @@ local exclusions = { true, "do" }, -- Single "do" { true, "local%s+[%w_,%s]+" }, -- "local var1, ..., varN" { true, "local%s+[%w_,%s]+%s*=" }, -- "local var1, ..., varN =" - { true, "local%s+function%s*%([%w_,%s]*%)" }, -- "local function(arg1, ..., argN)" - { true, "local%s+function%s+[%w_]*%s*%([%w_,%s]*%)" }, -- "local function f (arg1, ..., argN)" + { true, "local%s+function%s*%([%w_,%.%s]*%)" }, -- "local function(arg1, ..., argN)" + { true, "local%s+function%s+[%w_]*%s*%([%w_,%.%s]*%)" }, -- "local function f (arg1, ..., argN)" } local function excluded(line) -- cgit v1.2.1