diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-05-19 23:49:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-05-19 23:49:06 +0800 |
commit | a9042a1c8b03da6fc15888e58decc83dd314f17e (patch) | |
tree | f8a8f051d188dc708407842a41513bc1fa4deff7 /server/src/glob/matcher.lua | |
parent | d6f09b6d988c659bee7e41ddebf23d9af97e26d8 (diff) | |
download | lua-language-server-a9042a1c8b03da6fc15888e58decc83dd314f17e.zip |
fixed #35
Diffstat (limited to 'server/src/glob/matcher.lua')
-rw-r--r-- | server/src/glob/matcher.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/glob/matcher.lua b/server/src/glob/matcher.lua index 2e07cf95..db81d558 100644 --- a/server/src/glob/matcher.lua +++ b/server/src/glob/matcher.lua @@ -96,7 +96,9 @@ function mt:range(exp, state, index) local after = self:exp(state, index) local ranges = {} for _, range in ipairs(exp.value) do - ranges[#ranges+1] = range[1] .. range[2] + if range[1] and range[2] then + ranges[#ranges+1] = range[1] .. range[2] + end end local current = m.R(table.unpack(ranges)) if after then |