summaryrefslogtreecommitdiff
path: root/server/test/document_symbol/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/document_symbol/init.lua')
-rw-r--r--server/test/document_symbol/init.lua35
1 files changed, 35 insertions, 0 deletions
diff --git a/server/test/document_symbol/init.lua b/server/test/document_symbol/init.lua
index edfd1a27..73e910cb 100644
--- a/server/test/document_symbol/init.lua
+++ b/server/test/document_symbol/init.lua
@@ -284,3 +284,38 @@ local t = {
}
}
}
+
+TEST [[
+local t = {
+ a = {
+ b = 1,
+ }
+}
+]]
+{
+ [1] = {
+ name = 't',
+ detail = EXISTS,
+ kind = SymbolKind.Variable,
+ range = {7, 44},
+ selectionRange = {7, 7},
+ children = {
+ [1] = {
+ name = 'a',
+ detail = EXISTS,
+ kind = SymbolKind.Class,
+ range = {17, 42},
+ selectionRange = {17, 17},
+ children = {
+ [1] = {
+ name = 'b',
+ detail = EXISTS,
+ kind = SymbolKind.Class,
+ range = {31, 31},
+ selectionRange = {31, 31},
+ }
+ }
+ },
+ }
+ }
+}