mirror of https://github.com/yshui/picom.git
c2: deprecate raw string pattern
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
d621f7a3e2
commit
8c3ba22ae0
4
src/c2.c
4
src/c2.c
|
@ -852,6 +852,10 @@ static int c2_parse_pattern(const char *pattern, int offset, c2_ptr_t *presult)
|
||||||
C2H_SKIP_SPACES();
|
C2H_SKIP_SPACES();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (raw == true) {
|
||||||
|
log_warn("Raw string patterns has been deprecated. pos %d", offset);
|
||||||
|
}
|
||||||
|
|
||||||
// Check for delimiters
|
// Check for delimiters
|
||||||
if (pattern[offset] == '\"' || pattern[offset] == '\'') {
|
if (pattern[offset] == '\"' || pattern[offset] == '\'') {
|
||||||
pleaf->ptntype = C2_L_PTSTRING;
|
pleaf->ptntype = C2_L_PTSTRING;
|
||||||
|
|
Loading…
Reference in New Issue