Hacker News new | past | comments | ask | show | jobs | submit login

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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: