diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-11-14 11:35:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-11-14 11:35:52 +0800 |
commit | 6b51351ecf215a09609e63a17209ac8757cc3844 (patch) | |
tree | cc014b6beb7438be735168a3eecf2792bf393627 /server/src/parser/grammar.lua | |
parent | a1a5e4da0d5b1f994117d8e51ea7e105cca7d049 (diff) | |
download | lua-language-server-6b51351ecf215a09609e63a17209ac8757cc3844.zip |
多行注释支持折行
Diffstat (limited to 'server/src/parser/grammar.lua')
-rw-r--r-- | server/src/parser/grammar.lua | 2 |
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 / ( {} '/*' {} |