A few do, but not any of the popular ones as far as I know. Is there something bad about nesting comments?I plan to have block comments nest in the (small) language I'm working on, but I would like to know if this is a bad idea.
Why do most programming languages not nest block comments?
language agnostic;syntax;comments
Because most of the implementations are using separate lexing and parsing stages, and for lexing they're using plain old regular expressions. Comments are treated as whitespaces - i.e., ignored tokens, and thus should be resolved entirely in a lexing pass. The only advantage of this approach is parsing speed. Numerous disadvantages include severe limitations on syntax (e.g., a need to maintain a fixed, context-independent set of keywords).