Update range pattern syntax

Fixes #3.