summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-09 17:26:39 +0100
committerDaniel Silverstone <dsilvers@digital-scurf.org>2012-09-09 17:26:39 +0100
commitb3c5fc58b937f662bd1b389d6e7cb5c8a5d2c555 (patch)
treea9f334ea7fa607a5b89240fee96fc474678aa718
parent875148a62871a55df95f80bdaa999d3fbdea3c90 (diff)
downloadluacov-b3c5fc58b937f662bd1b389d6e7cb5c8a5d2c555.tar.bz2
Add some more false-negative detection patterns
-rwxr-xr-xsrc/bin/luacov6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/luacov b/src/bin/luacov
index 1a22947..2dd3c2d 100755
--- a/src/bin/luacov
+++ b/src/bin/luacov
@@ -49,14 +49,16 @@ local exclusions =
{
{ false, "^#!" }, -- Unix hash-bang magic line
{ true, "" }, -- Empty line
+ { true, "}" }, -- Just a close-brace
{ true, "end,?" }, -- Single "end"
{ true, "else" }, -- Single "else"
{ true, "repeat" }, -- Single "repeat"
{ 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)"
+ { true, "for.+in" } -- 'for long,arg,list in'
}
local function excluded(line)