fixing matching for bracketed text on a same line. if using brackets for attributes, one attribute minimum is required, otherwise falls back to previous handler