fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.63k stars 262 forks source link

Typescript indentation fails after a comment ending with a dot #1256

Closed UndeadKernel closed 1 year ago

UndeadKernel commented 1 year ago

In typescript, a code line that follows a comment that ends with a dot fails to indent correctly. Take this as an example:

// This is a comment with a dot at the end.
  let var = "wrong indentation";

// This is a comment without a dot at the end
let var = "correct indentation";
fxbois commented 1 year ago

should be fixed with last commit

UndeadKernel commented 1 year ago

Thank you @fxbois. Your work is very much appreciated!