|
|
|
|
|
by arcanemachiner
1028 days ago
|
|
How about explicit depth levels, specified by asterisk count? e.g. '/*' and '*/' would match each other, '/**' and '**/' would match, and so on. That way, you would have full control of the depth of the comments, removing other comments wouldn't break the inner comments, etc. I do run into the same issue you're describing, so I think there's value in the idea. |
|
What I'm not sure of is whether there's an edge case I haven't thought of which would make this problematic.