From 4c23093738d8eef5b1ec5b05b5067a2e3813f2aa Mon Sep 17 00:00:00 2001 From: Nicolas Cornu Date: Tue, 30 May 2017 13:55:47 +0200 Subject: [PATCH] Fix parsing of comments in lua lua comment are from "--[[" to "]]". --- lib/languages/lua.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/languages/lua.js b/lib/languages/lua.js index 4b8d339..8b7fb7e 100644 --- a/lib/languages/lua.js +++ b/lib/languages/lua.js @@ -3,7 +3,7 @@ */ module.exports = { // find document blocks between '--[[' and '--]]' - docBlocksRegExp: /--\[\[\uffff?(.+?)\uffff?(?:\s*)?--\]\]/g, + docBlocksRegExp: /--\[\[\uffff?(.+?)\uffff?(?:\s*)?\]\]/g, // remove not needed ' * ' and tabs at the beginning inlineRegExp: /^(\s*)?(\*)[ ]?/gm };