define b:color_pattern if not exists
catch "E121: Undefined variable: b:color_pattern"