summaryrefslogtreecommitdiff
path: root/src/parser/utils/get_code_frame.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/utils/get_code_frame.ts')
-rw-r--r--src/parser/utils/get_code_frame.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser/utils/get_code_frame.ts b/src/parser/utils/get_code_frame.ts
index a0c296672..e4f1834fd 100644
--- a/src/parser/utils/get_code_frame.ts
+++ b/src/parser/utils/get_code_frame.ts
@@ -1,7 +1,9 @@
+/** Die you stupid tabs */
function tabs_to_spaces(str: string) {
return str.replace(/^\t+/, (match) => match.split('\t').join(' '));
}
+/** Display syntax error in pretty format in logs */
export default function get_code_frame(source: string, line: number, column: number) {
const lines = source.split('\n');