summaryrefslogtreecommitdiff
path: root/server/src/parser/grammar.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-14 11:35:52 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-14 11:35:52 +0800
commit6b51351ecf215a09609e63a17209ac8757cc3844 (patch)
treecc014b6beb7438be735168a3eecf2792bf393627 /server/src/parser/grammar.lua
parenta1a5e4da0d5b1f994117d8e51ea7e105cca7d049 (diff)
downloadlua-language-server-6b51351ecf215a09609e63a17209ac8757cc3844.zip
多行注释支持折行
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r--server/src/parser/grammar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/parser/grammar.lua b/server/src/parser/grammar.lua
index 3525677a..568b8544 100644
--- a/server/src/parser/grammar.lua
+++ b/server/src/parser/grammar.lua
@@ -83,7 +83,7 @@ grammar 'Comment' [[
Comment <- LongComment / '--' ShortComment
LongComment <- ('--[' {} {:eq: '='* :} {} '['
{(!CommentClose .)*}
- (CommentClose / {}))
+ (CommentClose {} / {} {}))
-> LongComment
/ (
{} '/*' {}