Skip to content

Commit

Permalink
Merge pull request #105 from GerbenWelter/add_vte_regex_reference
Browse files Browse the repository at this point in the history
Fix TODO for documenting vte regex matching constants
  • Loading branch information
mattrose authored May 25, 2020
2 parents 3cdb6a6 + c4fab4e commit 9d5c2a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions terminatorlib/regex.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
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'):
Expand Down

0 comments on commit 9d5c2a6

Please sign in to comment.