That is the syntax checker of TESH. (Trigger Editor Syntax Highlighting) It checks for errors that would occur when running it under the standard World Editor syntax checker, not the Jass NewGenPack syntax checker.
So basically, ignore the syntax checker that TESH has, only pay attention to the errors that are brought up when you try to save the map, as those are the only actual errors in the code. (in terms of vJASS)