diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-31 16:12:32 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-31 16:12:32 +0800 |
commit | 996d46fcf80cedbc64b4f76fa772a1dcc1f567e6 (patch) | |
tree | 673a80438664074462ebb5a8b4d8eb9f7701d44b /script/parser | |
parent | 26b94a3743cf264ec2fad975f95c33069b37c4e3 (diff) | |
download | lua-language-server-996d46fcf80cedbc64b4f76fa772a1dcc1f567e6.zip |
watch symbolic links
resolve #1848
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 7f569d71..f3b5d502 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -82,7 +82,8 @@ local m = {} m.ANY = {"<ANY>"} -m.namePattern = '[%a_\x80-\xff][%w_\x80-\xff]*' +m.notNamePattern = '[^%w_\x80-\xff]' +m.namePattern = '[%a_\x80-\xff][%w_\x80-\xff]*' m.namePatternFull = '^' .. m.namePattern .. '$' local blockTypes = { |