diff options
author | mpeterv <mpeterval@gmail.com> | 2016-04-17 12:58:25 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-17 12:58:54 +0300 |
commit | 98e1f2d21e9b900fd5892a9a2731123cf8439afe (patch) | |
tree | 2a0af4dbc2746ba10392e50a6ff59d6335fdd54d | |
parent | c3b8293c1ce682f34abfb8d88687922288f016ed (diff) | |
download | luacov-98e1f2d21e9b900fd5892a9a2731123cf8439afe.tar.gz |
Fix line filtering for `{},`
-rw-r--r-- | src/luacov/reporter.lua | 1 | ||||
-rw-r--r-- | tests/linescanner.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua index fcf65c3..60d7190 100644 --- a/src/luacov/reporter.lua +++ b/src/luacov/reporter.lua @@ -53,6 +53,7 @@ local any_hits_exclusions = { --- Lines that are only excluded from accounting when they have 0 hits local zero_hits_exclusions = { "[ntfx0',= ]+,", -- "var1 var2," multi columns table stuff + "{ ?} ?,", -- Empty table before comma leaves no trace in tables and calls fixup "<FIELDNAME>=.+[,;]", -- "[123] = 23," "['foo'] = "asd"," fixup "<FIELDNAME>=function", -- "[123] = function(...)" fixup "<FIELDNAME>=<PARENS>'", -- "[123] = [[", possibly with opening parens diff --git a/tests/linescanner.lua b/tests/linescanner.lua index 6287850..59d8cd0 100644 --- a/tests/linescanner.lua +++ b/tests/linescanner.lua @@ -300,6 +300,7 @@ local d = { + id.k1.k2 + } ? local e = { + + {}, ? {} ? } ? local f = { + |