[gtksourceview] pcre2: add G_REGEX_DUPNAMES translation



commit 7531c8699bd043c759bcd4eef19aa242b442635a
Author: Christian Hergert <chergert redhat com>
Date:   Thu Oct 1 15:07:18 2020 -0700

    pcre2: add G_REGEX_DUPNAMES translation

 gtksourceview/implregex.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/gtksourceview/implregex.c b/gtksourceview/implregex.c
index 0a9a29a9..411efe9c 100644
--- a/gtksourceview/implregex.c
+++ b/gtksourceview/implregex.c
@@ -75,6 +75,9 @@ translate_compile_flags (GRegexCompileFlags flags)
        if (flags & G_REGEX_EXTENDED)
                ret |= PCRE2_EXTENDED;
 
+       if (flags & G_REGEX_DUPNAMES)
+               ret |= PCRE2_DUPNAMES;
+
        ret |= PCRE2_UCP;
        ret |= PCRE2_BSR_UNICODE;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]