summaryrefslogtreecommitdiff
path: root/script/parser
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-20 15:40:50 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-20 15:40:50 +0800
commit6897e265fef6b0a43f5f2a6355fd0ef300b72692 (patch)
tree96cd5a99dbd87a406faaa0aaaf72644cd5f51c16 /script/parser
parent437bae522a28cd0def7427edb0484d56e4834c7b (diff)
downloadlua-language-server-6897e265fef6b0a43f5f2a6355fd0ef300b72692.zip
fix #1642
Diffstat (limited to 'script/parser')
-rw-r--r--script/parser/guide.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index e8a53240..391dd3ad 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -81,6 +81,9 @@ local m = {}
m.ANY = {"<ANY>"}
+m.namePattern = '[%a_\x80-\xff][%w_\x80-\xff]*'
+m.namePatternFull = '^' .. m.namePattern .. '$'
+
local blockTypes = {
['while'] = true,
['in'] = true,