diff options
author | mpeterv <mpeterval@gmail.com> | 2016-04-17 13:06:30 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2016-04-17 13:06:30 +0300 |
commit | a644fa1834c00ecff86850e2a39ebc8937f39add (patch) | |
tree | b2d19204cdb914d835d6dc1e05d3bd39e7d0f123 | |
parent | 98e1f2d21e9b900fd5892a9a2731123cf8439afe (diff) | |
download | luacov-a644fa1834c00ecff86850e2a39ebc8937f39add.tar.gz |
Fix line filtering for `local x = (`
-rw-r--r-- | src/luacov/reporter.lua | 2 | ||||
-rw-r--r-- | tests/linescanner.lua | 4 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/luacov/reporter.lua b/src/luacov/reporter.lua index 60d7190..d2e1eaf 100644 --- a/src/luacov/reporter.lua +++ b/src/luacov/reporter.lua @@ -65,6 +65,8 @@ local zero_hits_exclusions = { fixup "<FULLID>", -- Same for local variables indexed once fixup "local x=function", -- "local a = function(arg1, ..., argN)" fixup "local x=<PARENS>'", -- "local a = [[", possibly with opening parens + fixup "local x=(<PARENS>", -- "local a = (", possibly with several parens + fixup "local <IDS>=(<PARENS>", -- "local a, b = (", possibly with several parens fixup "local x=n", -- "local a = nil; local b = nil" produces no trace for the second statement fixup "<FULLID>=<PARENS>'", -- "a.b = [[", possibly with opening parens fixup "<FULLID>=function", -- "a = function(arg1, ..., argN)" diff --git a/tests/linescanner.lua b/tests/linescanner.lua index 59d8cd0..8d245e4 100644 --- a/tests/linescanner.lua +++ b/tests/linescanner.lua @@ -249,6 +249,10 @@ local x, y = - 2, 3 + local x, y = 2, + 3 ? +local x = ( ? + a + b) + +local x, y = ( ? + a + b), c + ]] test [[ |