update pattern references to path segments in styler code