You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Both of the following were auto-indented by Atom (with four spaces per indent for visual clarity).
This code looks properly indented:
function example(param1) { //you wouldnt expect this apostrophe to affect indentation!
var starter = doSomeFormatting(param1,
{message: "hardcoded",
information: extra,
more: beyond}
);
var a = 4;
var b = 5;
return add(a,b);
}
This code does not:
function example(param1) { //you wouldn't expect this apostrophe to affect indentation!
var a = 4;
var b = 5;
var starter = doSomeFormatting(param1,
{message: "hardcoded",
information: extra,
more: beyond}
//The negative indentation error suggest that additional code here is no longer
//a sub-block within the function example().
//If there are multiple such comments, the indentation errors accumulate quickly.
);
and the only difference between them is a commented-out apostrophe, on a line after an open brace!
I noticed the same issue in Solidity and the issue may generalize beyond this package, but my lastattempts at opening auto-indent issues on Atom got moved to language-specific packages (so I'm starting out there with these reports).
Versions
Atom: 1.23.2
Electron: 1.6.15
Chrome: 56.0.2924.87
Node: 7.4.0
language-ethereum: 0.3.9
language-javascript: 0.127.6
OS : Windows 10
The text was updated successfully, but these errors were encountered:
Edit by @rsese
Smaller repro case from atom/atom#16990
Both of the following were auto-indented by Atom (with four spaces per indent for visual clarity).
This code looks properly indented:
This code does not:
and the only difference between them is a commented-out apostrophe, on a line after an open brace!
I noticed the same issue in Solidity and the issue may generalize beyond this package, but my last attempts at opening auto-indent issues on Atom got moved to language-specific packages (so I'm starting out there with these reports).
Versions
Atom: 1.23.2
Electron: 1.6.15
Chrome: 56.0.2924.87
Node: 7.4.0
language-ethereum: 0.3.9
language-javascript: 0.127.6
OS : Windows 10
The text was updated successfully, but these errors were encountered: