Re:Perl Cannot Be Parsed: A Formal Proof
by tolmasky on Thursday August 13, 2009 @02:38PM
(#761414)
Yes, but for a more practical example, this is defective in that it cannot be syntax highlighted correctly.
[ Parent
| on HN ]
Hacky perl can't be highlighted
Sensibly written perl highlights just fine - and you really need to commit intentional pathology to break the modern vim/emacs/etc. highlighters.
Personally I find syntax highlighters less helpful and more annoying than the wavy green line grammar check in word, but as a consultant I get to use editors with highlighting often enough and don't remember the last time I broke one ...
And syntax highlighting normally only requires lexical analysis, not syntactic analysis.
Conversely, automatic indentation requires syntactic analysis.