summaryrefslogtreecommitdiff
path: root/script/core/look-backward.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-15 16:22:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-15 16:22:42 +0800
commit353b5e3085fd7dd5f6b659917540096d3792b42c (patch)
tree3de8833c9baadc4158353b208c70cbfe478fe946 /script/core/look-backward.lua
parente2df6d85fb15c50b96811d1923079d003e7f52d4 (diff)
downloadlua-language-server-353b5e3085fd7dd5f6b659917540096d3792b42c.zip
fix #1439
Diffstat (limited to 'script/core/look-backward.lua')
-rw-r--r--script/core/look-backward.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/look-backward.lua b/script/core/look-backward.lua
index 8d3e3439..d90c4fff 100644
--- a/script/core/look-backward.lua
+++ b/script/core/look-backward.lua
@@ -58,7 +58,8 @@ function m.findSymbol(text, offset)
or char == '('
or char == ','
or char == '['
- or char == '=' then
+ or char == '='
+ or char == '{' then
return char, i
else
return nil