From 57082c36744a10f24cc06bea56ca6e6bb2779734 Mon Sep 17 00:00:00 2001 From: Tan Kian-ting Date: Thu, 12 Oct 2023 00:41:36 +0800 Subject: [PATCH] fix lacking semicolon; for import --- a.clo | 2 +- a.js | 4 ++-- src/parser.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/a.clo b/a.clo index f98a5c3..ac2b033 100644 --- a/a.clo +++ b/a.clo @@ -1,6 +1,6 @@ /* ba choir ipsum lorem*/ - +import * as dublin from 'dublin'; --- 我是一隻古怪的虎斑貓。擅長喵喵叫。 the quick brown fox jumps over the lazy dog. diff --git a/a.js b/a.js index 317dd04..f10ef75 100644 --- a/a.js +++ b/a.js @@ -6,8 +6,8 @@ import * as clo from "clo"; cl = clo.initClo(); /* CLO: end of head*/ /* ba choir -ipsum lorem*/ - +ipsum lorem*/; +import * as dublin from 'dublin'; /* CLO: beginning of middle part*/ cl.mainText = /* CLO: end of middle part*/ diff --git a/src/parser.ts b/src/parser.ts index 269b698..5521491 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -273,7 +273,7 @@ export function treeToJS(tree : tkTree): string{ let importsText = imports.map( (x)=>{ if (Array.isArray(x)){ - return x.join(''); + return x.join('') + ';'; } else{ return x; -- 2.39.2