syntax: add when-defined

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
soft-depend on replace-evt

Signed-off-by: Jan Dvořák <mordae@anilinux.org>