generalize code comment detection