Fix TODO for documening vte regex matching constants

This commit is contained in:
Gerben Welter 2020-05-24 20:17:33 +02:00
parent 3cdb6a65b1
commit c4fab4ef0e
1 changed files with 4 additions and 2 deletions

View File

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