From c4fab4ef0e55e468e6268011f91b3278309440c6 Mon Sep 17 00:00:00 2001 From: Gerben Welter Date: Sun, 24 May 2020 20:17:33 +0200 Subject: [PATCH] Fix TODO for documening vte regex matching constants --- terminatorlib/regex.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/terminatorlib/regex.py b/terminatorlib/regex.py index e88c1189..029bec2a 100644 --- a/terminatorlib/regex.py +++ b/terminatorlib/regex.py @@ -6,8 +6,10 @@ import gi gi.require_version('Vte', '2.91') # vte-0.38 (gnome-3.14) from gi.repository import GLib, Vte -# constants for vte regex matching -# TODO: Please replace with a proper reference to VTE, I found none! +# constants for vte regex matching are documented in the pcre2 api: +# https://www.pcre.org/current/doc/html/pcre2api.html +# the corresponding bits are defined here: +# https://vcs.pcre.org/pcre2/code/trunk/src/pcre2.h.in?view=markup PCRE2_MULTILINE = 0x00000400 FLAGS_GLIB = (GLib.RegexCompileFlags.OPTIMIZE | GLib.RegexCompileFlags.MULTILINE) if hasattr(Vte, 'REGEX_FLAGS_DEFAULT'):