summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenny Shields <mail@kennyshields.net>2016-07-09 21:12:07 -0400
committerKenny Shields <mail@kennyshields.net>2016-07-09 21:12:07 -0400
commitce12330a9cc6eccf842a6fa26cb9cdb324c82c17 (patch)
treed3d3025da86cbc1ebcfbf02140ed9630eba27c2b
parent1ad9a32db97900272e6b6c0337d63500d42ca41a (diff)
downloadstp-ce12330a9cc6eccf842a6fa26cb9cdb324c82c17.tar.gz
stp-ce12330a9cc6eccf842a6fa26cb9cdb324c82c17.zip
Reset variables before parsing file lines
-rw-r--r--init.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 446aa09..4492b85 100644
--- a/init.lua
+++ b/init.lua
@@ -151,6 +151,14 @@ end
function lib.init(config)
+ -- reset variables
+ in_comment = false
+ comment_multiline = false
+ comment_end_pattern = false
+ token_table = false
+ token_current = false
+ collected = {}
+
if config.path then
if config.comment_patterns then
if config.replace_comment_patterns then