Character to ignore the rest of the directive

Is there a character that can be used to ignore the remainder of the line in a directive ?
I know I can create several variants of a directive and remark out entire lines using the asterisk, but I wonder if a part of a directive could be simply remarked out too ?

Use ; to comment remainder of the line


Another directive comment is “//” the C++ comment mark.