I have changed the setting to the same name as the module. There are no other Verilog files in the folder where this file is stored. I don't know what is wrong with the grammar.
module test(A,B,F);
input A;
input [1:0]B;
output F;
reg F;
always @(*)
if({A,B}==3'b001 or {A,B}==3'b010 or {A,B}==3'b100 or {A,B}==3'b101)
F=1;
else F=0;
endmodule