From cdb057dfc3cc6b3a099f66240e1fde5488597ae1 Mon Sep 17 00:00:00 2001 From: tommy Date: Mon, 4 Dec 2017 20:30:35 +0000 Subject: [PATCH] fix lua comment block --- runtime/syntax/lua.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/runtime/syntax/lua.yaml b/runtime/syntax/lua.yaml index 0302b897..3ee256e1 100644 --- a/runtime/syntax/lua.yaml +++ b/runtime/syntax/lua.yaml @@ -46,13 +46,15 @@ rules: - special: "\\\\[0-7][0-7][0-7]|\\\\x[0-9a-fA-F][0-9a-fA-F]|\\\\[abefnrs]|(\\\\c|\\\\C-|\\\\M-|\\\\M-\\\\C-)." + - comment.block: + start: "\\-\\-\\[(\\=*|\\#*)\\[" + end: "\\-\\-\\](\\=*|\\#*)\\]" + rules: + - todo: "(TODO|XXX|FIXME):?" + +# this has to go after block comment or block comment does not work + - comment: start: "\\-\\-" end: "$" - rules: [] - - - comment: - start: "\\-\\-\\[\\[" - end: "\\]\\]" - rules: [] - + rules: [] \ No newline at end of file