core: added support for WS keyword for use in conditionals with proto and snd_proto