summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-04-22 15:03:20 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-04-22 15:03:20 +0800
commit10bb6c6a994561a9da359a7edabe29d821ab9c6f (patch)
treef249b8aaa150deaad86dfaa3b53ac457769b8fdd
parent3cbb4891100a864e17af5a77dec23942caea3577 (diff)
downloadlua-language-server-10bb6c6a994561a9da359a7edabe29d821ab9c6f.zip
漏了一处
-rw-r--r--script/glob/gitignore.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/glob/gitignore.lua b/script/glob/gitignore.lua
index 315efa37..ce0beea6 100644
--- a/script/glob/gitignore.lua
+++ b/script/glob/gitignore.lua
@@ -19,7 +19,7 @@ end
local parser = m.P {
'Main',
['Sp'] = m.S(' \t')^0,
- ['Slash'] = m.S('/\\')^1,
+ ['Slash'] = m.S('/')^1,
['Main'] = m.Ct(m.V'Sp' * m.P'{' * m.V'Pattern' * (',' * expect(m.V'Pattern', 'Miss exp after ","'))^0 * m.P'}')
+ m.Ct(m.V'Pattern')
+ m.T'Main Failed'