diff options
Diffstat (limited to 'spec/outputs/test/format_spec.lua')
-rw-r--r-- | spec/outputs/test/format_spec.lua | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/spec/outputs/test/format_spec.lua b/spec/outputs/test/format_spec.lua index 33a85f2..ed0fbee 100644 --- a/spec/outputs/test/format_spec.lua +++ b/spec/outputs/test/format_spec.lua | |||
@@ -101,16 +101,14 @@ rewriteLineCol = function(item) | |||
101 | item[2] = 0 | 101 | item[2] = 0 |
102 | item[3] = 0 | 102 | item[3] = 0 |
103 | for i = 4, #item do | 103 | for i = 4, #item do |
104 | do | 104 | local _exp_0 = type(item[i]) |
105 | local _exp_0 = type(item[i]) | 105 | if "table" == _exp_0 then |
106 | if "table" == _exp_0 then | 106 | if item[i][1] == "comment" then |
107 | if item[i][1] == "comment" then | 107 | table.remove(item, i) |
108 | table.remove(item, i) | 108 | rewriteLineCol(item) |
109 | rewriteLineCol(item) | 109 | return |
110 | return | ||
111 | end | ||
112 | rewriteLineCol(item[i]) | ||
113 | end | 110 | end |
111 | rewriteLineCol(item[i]) | ||
114 | end | 112 | end |
115 | end | 113 | end |
116 | end | 114 | end |