summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
authorAnthon van der Neut <anthon@mnt.org>2019-08-08 08:21:57 +0200
committerAnthon van der Neut <anthon@mnt.org>2019-08-08 08:21:57 +0200
commit679917903a98206aa3566594c89b2ce20705b2c6 (patch)
tree35c057be6cc83ba8aa417c748a3e52a04b5b7688 /scanner.py
parentdcf61a365571b2ace182232252db6122382e9ace (diff)
downloadruamel.yaml-679917903a98206aa3566594c89b2ce20705b2c6.tar.gz
allow '#' in tag URI, force use of new clib0.16.1
fixes issue #300 *When this change indeed resolves your problem, please **Close** this issue*. *(You can do so using the WorkFlow pull-down (close to the top right of this page))*
Diffstat (limited to 'scanner.py')
-rw-r--r--scanner.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scanner.py b/scanner.py
index 46cd9d7..7267cea 100644
--- a/scanner.py
+++ b/scanner.py
@@ -1675,6 +1675,7 @@ class Scanner(object):
or 'A' <= ch <= 'Z'
or 'a' <= ch <= 'z'
or ch in "-;/?:@&=+$,_.!~*'()[]%"
+ or ((self.scanner_processing_version > (1, 1)) and ch == "#")
):
if ch == '%':
chunks.append(self.reader.prefix(length))