**[TS and JS Grammar Extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.typescript-javascript-grammar) version:** 0.0.19 / latest From: https://github.com/Microsoft/vscode/issues/26221 **Code** ```ts func(function () // } { if (false) return 1 else return 2 }); ``` <img width="227" alt="screen shot 2017-05-15 at 5 09 17 pm" src="https://cloud.githubusercontent.com/assets/12821956/26084490/3fc53832-3991-11e7-8032-98c76df7219c.png"> It seems the `}` in the commend causes the function scoped to be closed early