diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-10-08 13:01:18 +0800 |
| commit | 97bbe98289fb74c7cf2d9793b80a1a27b4146045 (patch) | |
| tree | 4bee0dded55bad28f6822b6e2dd3ea5251c66ae2 /src/MoonP/stacktraceplus.h | |
| parent | 5b656d2913e4f9f0017698ec835ce4ddda1dc81f (diff) | |
| download | yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.gz yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.tar.bz2 yuescript-97bbe98289fb74c7cf2d9793b80a1a27b4146045.zip | |
change file extension moonp.
Diffstat (limited to 'src/MoonP/stacktraceplus.h')
| -rw-r--r-- | src/MoonP/stacktraceplus.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 335 | end | 335 | end |
| 336 | if file_exist then | 336 | if file_exist then |
| 337 | local codes = moonp.read_file(file_path) | 337 | local codes = moonp.read_file(file_path) |
| 338 | local moonFile = codes:match("^%s*--%s*%[moon%]:%s*([^\n]*)") | 338 | local moonFile = codes:match("^%s*--%s*%[moonp%]:%s*([^\n]*)") |
| 339 | if moonFile then | 339 | if moonFile then |
| 340 | fname = moonFile:gsub("^%s*(.-)%s*$", "%1") | 340 | fname = moonFile:gsub("^%s*(.-)%s*$", "%1") |
| 341 | source = codes | 341 | source = codes |
