diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 18:32:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-28 18:32:52 +0800 |
commit | 4e63ce41147f68b25282c375b2c067c2663e9aaa (patch) | |
tree | 61d434440e2dc5e373355a4c979ae44a5959a686 /server/test | |
parent | 08ab0f45adb64f314b55f38ae69b7fee97e30e36 (diff) | |
download | lua-language-server-4e63ce41147f68b25282c375b2c067c2663e9aaa.zip |
暂时先这样实现吧
Diffstat (limited to 'server/test')
-rw-r--r-- | server/test/document_symbol/init.lua | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/server/test/document_symbol/init.lua b/server/test/document_symbol/init.lua index c8f16fbd..7aaef322 100644 --- a/server/test/document_symbol/init.lua +++ b/server/test/document_symbol/init.lua @@ -154,45 +154,45 @@ end } } ---TEST [[ ---function A() --- function A1() --- end --- function A2() --- end ---end ---function B() ---end ---]] ---{ --- [1] = { --- name = 'A', --- detail = 'function A()', --- kind = SymbolKind.Function, --- range = {1, 68}, --- selectionRange = {10, 10}, --- children = { --- [1] = { --- name = 'A1', --- detail = 'function A1()', --- kind = SymbolKind.Function, --- range = {18, 38}, --- selectionRange = {27, 28}, --- }, --- [2] = { --- name = 'A2', --- detail = 'function A2()', --- kind = SymbolKind.Function, --- range = {44, 64}, --- selectionRange = {53, 54}, --- }, --- }, --- }, --- [2] = { --- name = 'B', --- detail = 'function B()', --- kind = SymbolKind.Function, --- range = {70, 85}, --- selectionRange = {79, 79}, --- }, ---} +TEST [[ +function A() + function A1() + end + function A2() + end +end +function B() +end +]] +{ + [1] = { + name = 'A', + detail = 'function A()', + kind = SymbolKind.Function, + range = {1, 68}, + selectionRange = {10, 10}, + children = { + [1] = { + name = 'A1', + detail = 'function A1()', + kind = SymbolKind.Function, + range = {18, 38}, + selectionRange = {27, 28}, + }, + [2] = { + name = 'A2', + detail = 'function A2()', + kind = SymbolKind.Function, + range = {44, 64}, + selectionRange = {53, 54}, + }, + }, + }, + [2] = { + name = 'B', + detail = 'function B()', + kind = SymbolKind.Function, + range = {70, 85}, + selectionRange = {79, 79}, + }, +} |