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'):