From: Tan Kian-ting Date: Wed, 11 Oct 2023 16:41:36 +0000 (+0800) Subject: fix lacking semicolon; for import X-Git-Url: https://git.kianting.info/?a=commitdiff_plain;h=57082c36744a10f24cc06bea56ca6e6bb2779734;p=clo fix lacking semicolon; for import --- 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;