estools / escodegen

ECMAScript code generator
BSD 2-Clause "Simplified" License
2.64k stars 334 forks source link

Comment causes wrong indentation #435

Open lucivpav opened 3 years ago

lucivpav commented 3 years ago

Input:

let variable = // comment
    3+3;

Output:

let variable = // comment
3 + 3;

Expected output:

let variable = // comment
    3 + 3;