diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 17:33:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-01-18 17:33:02 +0800 |
commit | fb1d31d354648445d975fe827c237351f036c562 (patch) | |
tree | b357d93afe3cdbccef0842d0f9e6e564ac6a3b66 | |
parent | c6cac231b097f0a0aaea76e03bb50bdbdd363809 (diff) | |
download | lua-language-server-fb1d31d354648445d975fe827c237351f036c562.zip |
fix #906
-rw-r--r-- | changelog.md | 1 | ||||
-rw-r--r-- | script/glob/matcher.lua | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 9a1a455f..ba61c5c7 100644 --- a/changelog.md +++ b/changelog.md @@ -3,6 +3,7 @@ ## 2.6.1 * `FIX` modify luarc failed * `FIX` library files not recognized correctly +* `FIX` [#906](https://github.com/sumneko/lua-language-server/issues/906) ## 2.6.0 `2022-1-13` 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 (...) |