diff options
Diffstat (limited to 'script/parser/grammar.lua')
-rw-r--r-- | script/parser/grammar.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/script/parser/grammar.lua b/script/parser/grammar.lua index f222a283..b9628f3f 100644 --- a/script/parser/grammar.lua +++ b/script/parser/grammar.lua @@ -88,9 +88,9 @@ end grammar 'Comment' [[ Comment <- LongComment / '--' ShortComment -LongComment <- ('--[' {} {:eq: '='* :} {} '[' +LongComment <- ({} '--[' {} {:eq: '='* :} {} '[' {(!CommentClose .)*} - (CommentClose / {})) + ((CommentClose / %nil) {})) -> LongComment / ( {} '/*' {} @@ -98,7 +98,7 @@ LongComment <- ('--[' {} {:eq: '='* :} {} '[' {} '*/' {} ) -> CLongComment -CommentClose <- ']' =eq ']' +CommentClose <- {']' =eq ']'} ShortComment <- ({} {(!%nl .)*} {}) -> ShortComment ]] |