Fixed looping in auto-complete when processing recursive assignments.

This commit is contained in:
Paul Kulchenko
2015-02-22 21:23:08 -08:00
parent 056dd6dedf
commit f7ec693b03
2 changed files with 11 additions and 0 deletions

View File

@@ -164,6 +164,8 @@ return {
:gsub("%b()","")
:gsub("%b{}","")
:gsub("%b[]",".0")
-- replace concatenation with addition to avoid misidentifying types
:gsub("%.%.+","+")
-- remove comments; they may be in strings, but that's okay here
:gsub("%-%-.*",""))
if (typ and (typ:match(",") or typ:match("%sor%s") or typ:match("%sand%s"))) then