PY-21697 Handle sequences like '\\''' in multiline strings in Python lexer

Previously, they would get matched as '\ followed by \', and then,
two remaining quotes. Therefore the literal was considered unterminated
by the lexer. It, in turn, broke multiple assertions in
PyStringLiteralLexer because it used to find different string's end than
PythonHighlightingLexer and rendered the whole editor unresponsive.
This commit is contained in:
Mikhail Golubev
2016-12-19 22:00:11 +03:00
parent 5ee2be25eb
commit ead37e8492
6 changed files with 88 additions and 54 deletions

View File

@@ -0,0 +1,3 @@
s = '''
'\\''''
'''

View File

@@ -0,0 +1,3 @@
s = '''
'\\<caret>''
'''