summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-03 09:58:12 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-03 09:58:12 +0800
commit8315f15e5316ed0e1d95df5d957a3e95bf3c131f (patch)
treeaf41908a4286ecea725736c3a7f22ade4cd512ca /server/src
parenta86ddc73a90586b03d3498d93a08c0533bbe24b8 (diff)
downloadlua-language-server-8315f15e5316ed0e1d95df5d957a3e95bf3c131f.zip
更新语法解析
Diffstat (limited to 'server/src')
-rw-r--r--server/src/parser/grammar.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index dea6d38e..6ab9ded0 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -367,7 +367,9 @@ CrtAction <- SEMICOLON
/ Set
/ Call
/ Exp
-UnkAction <- ({} {. (!Sps !CrtAction .)*})
+UnkAction <- ({} {Word+})
+ -> UnknownSymbol
+ / ({} {. (!Sps !CrtAction .)*})
-> UnknownSymbol
SimpleList <- (Simple (COMMA Simple)*)