That's just a syntax error. Maybe you attempted to put a material into a .fx file. Material definitions belong into script files (.wdl), .fx is for the bare effects only.