Re:Actual drawbacks to omitting semi-colons?
by VMG on Wednesday October 06, 2010 @01:01AM
(#1762796)
damn it I forgot that - does anyone know how to make vim highlight this?
[ Parent
| on HN ]
Re:Actual drawbacks to omitting semi-colons?
by grayrest on Wednesday October 06, 2010 @01:32AM
(#1762848)
In 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.