summaryrefslogtreecommitdiff
path: root/src/luacov/reporter.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/luacov/reporter.lua')
-rw-r--r--src/luacov/reporter.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua
index d8e315c..9da032c 100644
--- a/src/luacov/reporter.lua
+++ b/src/luacov/reporter.lua
@@ -66,6 +66,8 @@ local zero_hits_exclusions = {
fixup "local <ID>=<PARENS>'", -- "local a = [[", possibly with opening parens
fixup "<FULLID>=<PARENS>'", -- "a.b = [[", possibly with opening parens
fixup "<FULLID>=function", -- "a = function(arg1, ..., argN)"
+ "} ?,", -- "}," generates no trace if the table ends with a key-value pair
+ "} ?, ?function", -- same with "}, function(...)"
"break", -- "break" generates no trace in Lua 5.2+
"{", -- "{" opening table
"}?[ %)]*", -- optional "{" closing table, possibly with several closing parens