fix lacking semicolon; for import

This commit is contained in:
Tan, Kian-ting 2023-10-12 00:41:36 +08:00
parent 4064e59701
commit 57082c3674
3 changed files with 4 additions and 4 deletions

2
a.clo
View file

@ -1,6 +1,6 @@
/* ba choir /* ba choir
ipsum lorem*/ ipsum lorem*/
import * as dublin from 'dublin';
--- ---
我是一隻古怪的虎斑貓。擅長喵喵叫。 我是一隻古怪的虎斑貓。擅長喵喵叫。
the quick brown fox jumps over the lazy dog. the quick brown fox jumps over the lazy dog.

4
a.js
View file

@ -6,8 +6,8 @@ import * as clo from "clo";
cl = clo.initClo(); cl = clo.initClo();
/* CLO: end of head*/ /* CLO: end of head*/
/* ba choir /* ba choir
ipsum lorem*/ ipsum lorem*/;
import * as dublin from 'dublin';
/* CLO: beginning of middle part*/ /* CLO: beginning of middle part*/
cl.mainText = /* CLO: end of middle part*/ cl.mainText = /* CLO: end of middle part*/

View file

@ -273,7 +273,7 @@ export function treeToJS(tree : tkTree): string{
let importsText = imports.map( let importsText = imports.map(
(x)=>{ (x)=>{
if (Array.isArray(x)){ if (Array.isArray(x)){
return x.join(''); return x.join('') + ';';
} }
else{ else{
return x; return x;