summaryrefslogtreecommitdiff
path: root/test-beta/document_symbol/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/document_symbol/init.lua')
-rw-r--r--test-beta/document_symbol/init.lua19
1 files changed, 18 insertions, 1 deletions
diff --git a/test-beta/document_symbol/init.lua b/test-beta/document_symbol/init.lua
index 26928145..d9f1bec3 100644
--- a/test-beta/document_symbol/init.lua
+++ b/test-beta/document_symbol/init.lua
@@ -105,7 +105,7 @@ end
{
[1] = {
name = '',
- detail = 'function ()',
+ detail = 'return function ()',
kind = define.SymbolKind.Function,
range = {8, 22},
selectionRange = {8, 8},
@@ -611,3 +611,20 @@ local a = f {
}
}
}
+
+TEST [[
+table.sort(t, function (a, b)
+ return false
+end)
+]]
+{
+ [1] = {
+ name = '',
+ detail = 'table.sort -> function (a, b)',
+ kind = define.SymbolKind.Function,
+ range = {15, 50},
+ selectionRange = {15, 15},
+ valueRange = {15, 50},
+ children = EXISTS,
+ }
+}