diff options
Diffstat (limited to 'script-beta/core/document-symbol.lua')
-rw-r--r-- | script-beta/core/document-symbol.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/script-beta/core/document-symbol.lua b/script-beta/core/document-symbol.lua index 817db95e..6f3e788f 100644 --- a/script-beta/core/document-symbol.lua +++ b/script-beta/core/document-symbol.lua @@ -98,11 +98,13 @@ local function buildValue(source, symbols) range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } kind = skind.Property - else + elseif source.type == 'setfield' then details[1] = 'field' range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } kind = skind.Field + else + return end if source.value then local literal = source.value[1] |