summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-04-20 16:05:16 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-04-20 16:05:16 +0800
commit9a1307a9147ef8956db9cdc37e42f057d24c3db1 (patch)
tree133f24d4d69dda91bb38a8a8c08dd4481304a34d /test
parent6df0f180687cc1e9d7589281c1ca37659145f508 (diff)
downloadlua-language-server-9a1307a9147ef8956db9cdc37e42f057d24c3db1.zip
backward tablefield
Diffstat (limited to 'test')
-rw-r--r--test/basic/linker.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/test/basic/linker.txt b/test/basic/linker.txt
index 49f27234..76b1980c 100644
--- a/test/basic/linker.txt
+++ b/test/basic/linker.txt
@@ -46,3 +46,29 @@ expect: 'l|0|y' + '|z'
forward: 'l|1'+ '|z' -> 'l|1|z' -> field z
backward: nil
last: 'l|0' + '|y|z'
+
+
+```lua
+a = {
+ b = {
+ <?c?> = 1,
+ }
+}
+
+print(a.b.<!c!>)
+```
+
+expect: 't|3|c'
+forward: nil
+backward: nil
+last: 't|3' + '|c'
+
+expect: 't|3' + '|c'
+forward: nil
+backward: 't|2|b' + '|c'
+last: nil
+
+expect: 't|2|b|c'
+forward: nil
+backward: 't|2|b' + '|c'
+last: nil