mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 06:39:38 +07:00
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:
@@ -0,0 +1,3 @@
|
||||
s = '''
|
||||
'\\''''
|
||||
'''
|
||||
@@ -0,0 +1,3 @@
|
||||
s = '''
|
||||
'\\<caret>''
|
||||
'''
|
||||
Reference in New Issue
Block a user