4 ms·
The one place where this really bites me is return statements. For example: function x() { return 2+3; } alert(x()); Every now and
by zmmmmm 16y ago
The one place where this really bites me is return statements. For example:
function x() {
return
2+3;
}
alert(x());
Every now and then I'll reformat a line by breaking it in two and it takes me 10 minutes to figure out why my code is not working.
- VMG 16y agodamn it I forgot that - does anyone know how to make vim highlight this?
- grayrest 16y agoIn your after/syntax/javascript.vim: syntax match javascriptReturnError /return\s*\n\r\?\s*\w.*$/ ... highlight link javascriptReturnError Error Obviously you can play around with the regex to tweak what matches.
- deleted 16y ago[deleted]