diff options
Diffstat (limited to 'script-beta')
-rw-r--r-- | script-beta/core/document-symbol.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script-beta/core/document-symbol.lua b/script-beta/core/document-symbol.lua index 6f3e788f..dd58fe82 100644 --- a/script-beta/core/document-symbol.lua +++ b/script-beta/core/document-symbol.lua @@ -94,11 +94,17 @@ local function buildValue(source, symbols) sRange = { source.start, source.finish } kind = skind.Class elseif source.type == 'tablefield' then + if not source.field then + return + end details[1] = 'field' range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } kind = skind.Property elseif source.type == 'setfield' then + if not source.field then + return + end details[1] = 'field' range = { source.field.start, source.field.finish } sRange = { source.field.start, source.field.finish } |