summaryrefslogtreecommitdiff
path: root/script/glob
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-01-18 17:33:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-01-18 17:33:02 +0800
commitfb1d31d354648445d975fe827c237351f036c562 (patch)
treeb357d93afe3cdbccef0842d0f9e6e564ac6a3b66 /script/glob
parentc6cac231b097f0a0aaea76e03bb50bdbdd363809 (diff)
downloadlua-language-server-fb1d31d354648445d975fe827c237351f036c562.zip
fix #906
Diffstat (limited to 'script/glob')
-rw-r--r--script/glob/matcher.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/glob/matcher.lua b/script/glob/matcher.lua
index 0a2a740f..fceb32e2 100644
--- a/script/glob/matcher.lua
+++ b/script/glob/matcher.lua
@@ -3,7 +3,7 @@ local m = require 'lpeglabel'
local Slash = m.S('/\\')^1
local Symbol = m.S',{}[]*?/\\'
local Char = 1 - Symbol
-local Path = Char^1 * Slash
+local Path = (1 - m.S[[\/:*?"<>|]])^1 * Slash
local NoWord = #(m.P(-1) + Symbol)
local function whatHappened()
return m.Cmt(m.P(1)^1, function (...)