Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Another situation where regexes are possibly abused - syntax highlighting. Yes, there are a lot of languages where you can sanely highlight /most/ code with regexes, but there's a non-zero number where you need a little more context, such as that provided by an AST (which would also help with autocompletion anyway if the highlighting is being done in the context of an editor).


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

Search: