For this simple JavaScript snippet:
[code]jQuery(window).bind(‘pageshow’, function() {
setTimeout(function() {
// hmm
$("#foo").val("hello");
}, 1);
});
[/code]
Sublime Text 2’s Edit -> Line -> Reindent can’t indent it properly. It can indent it properly if the comment line “// hmm” is removed. (This happens with my code when there is comments here and there in the code).
Would you please fix it please? Sublime Text 2 is being used by many team members in my team and I’d like to see it getting better and better.