lib/pattern: fix formatting