From 97bbe98289fb74c7cf2d9793b80a1a27b4146045 Mon Sep 17 00:00:00 2001 From: Li Jin Date: Thu, 8 Oct 2020 13:01:18 +0800 Subject: change file extension moonp. --- src/MoonP/stacktraceplus.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/MoonP/stacktraceplus.h') diff --git a/src/MoonP/stacktraceplus.h b/src/MoonP/stacktraceplus.h index d658c5c..e884a2c 100644 --- a/src/MoonP/stacktraceplus.h +++ b/src/MoonP/stacktraceplus.h @@ -335,7 +335,7 @@ local function getMoonLineNumber(fname, line) end if file_exist then local codes = moonp.read_file(file_path) - local moonFile = codes:match("^%s*--%s*%[moon%]:%s*([^\n]*)") + local moonFile = codes:match("^%s*--%s*%[moonp%]:%s*([^\n]*)") if moonFile then fname = moonFile:gsub("^%s*(.-)%s*$", "%1") source = codes -- cgit v1.2.3-55-g6feb