diff options
author | Dieter Verfaillie <dieterv@optionexplicit.be> | 2012-07-04 07:53:29 +0200 |
---|---|---|
committer | Dieter Verfaillie <dieterv@optionexplicit.be> | 2012-11-28 21:31:23 +0100 |
commit | 9da33d09cd025f695df139c4501995182471f96b (patch) | |
tree | 18553d6e528edff381bf9fd611a207e18c93c06e /giscanner/annotationparser.py | |
parent | 8f638062fb49866e3a2f632a64eb71d7dbcc75bc (diff) | |
download | gobject-introspection-9da33d09cd025f695df139c4501995182471f96b.tar.gz |
giscanner: remove re.MULTILINE usage from annotationparser
These are remnants from the original prototype and are no
longer used.
https://bugzilla.gnome.org/show_bug.cgi?id=688897
Diffstat (limited to 'giscanner/annotationparser.py')
-rw-r--r-- | giscanner/annotationparser.py | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/giscanner/annotationparser.py b/giscanner/annotationparser.py index 57a5433e..f1fbfdaa 100644 --- a/giscanner/annotationparser.py +++ b/giscanner/annotationparser.py @@ -136,8 +136,7 @@ OPT_TRANSFER_FLOATING = 'floating' #The following regular expression programs are built to: # - match (or substitute) a single comment block line at a time; -# - support MULTILINE mode and should support (but remains untested) -# LOCALE and UNICODE modes. +# - support (but remains untested) LOCALE and UNICODE modes. # Program matching the start of a comment block. # @@ -150,7 +149,7 @@ COMMENT_START_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching the end of a comment block. # @@ -162,7 +161,7 @@ COMMENT_END_RE = re.compile(r''' / # 1 forward slash character $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching the ' * ' at the beginning of every # line inside a comment block. @@ -187,7 +186,7 @@ EMPTY_LINE_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching SECTION identifiers. # @@ -205,7 +204,7 @@ SECTION_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching symbol (function, constant, struct and enum) identifiers. # @@ -224,7 +223,7 @@ SYMBOL_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching property identifiers. # @@ -248,7 +247,7 @@ PROPERTY_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching signal identifiers. # @@ -272,7 +271,7 @@ SIGNAL_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching parameters. # @@ -296,7 +295,7 @@ PARAMETER_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) # Program matching tags. # @@ -320,7 +319,7 @@ TAG_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE | re.IGNORECASE) + re.VERBOSE | re.IGNORECASE) # Program matching multiline annotation continuations. # This is used on multiline parameters and tags (but not on the first line) to @@ -340,7 +339,7 @@ MULTILINE_ANNOTATION_CONTINUATION_RE = re.compile(r''' [^\S\n\r]* # 0 or more whitespace characters $ # end ''', - re.VERBOSE | re.MULTILINE) + re.VERBOSE) class DocBlock(object): |