diff options
author | mpeterv <mpeterval@gmail.com> | 2015-12-02 12:51:06 +0300 |
---|---|---|
committer | mpeterv <mpeterval@gmail.com> | 2015-12-02 12:51:06 +0300 |
commit | b9bd9e0edc8a788253905943bef2adbd3252408e (patch) | |
tree | 01ffb2e16153878416d004b14fa6fd26d9261fca /tests | |
parent | 60fe27fd461eb4cef583669b10ebf599e79c3849 (diff) | |
download | luacov-b9bd9e0edc8a788253905943bef2adbd3252408e.tar.gz |
Filter multiline string declarations with parens properly
Fixes first line marked as missed in
t.k = ([[
line 1: %s
line 2: %s
]]):format(var1, var2)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/linescanner.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/linescanner.lua b/tests/linescanner.lua index 8aa1923..e865507 100644 --- a/tests/linescanner.lua +++ b/tests/linescanner.lua @@ -207,10 +207,17 @@ print(a) + ]=] test [=[ -local a = ("\ + +local a = ("\ ? local function(") + ]=] +-- String declarations with parentheses. +test [=[ +local a = ([[ ? +format %string - +]]):format(var) + +]=] + -- Incomplete function declarations. test [[ local function fff(a, - |