Update reference/syntax.rst

Spawn, wait and critical syntax added.