...
This commit is contained in:
parent
261ac9d8e8
commit
b71edfc1a6
1 changed files with 9 additions and 5 deletions
|
|
@ -213,11 +213,15 @@ def parse_issue_file(self, issue_file: IO[str]) -> Iterator[str]:
|
|||
else:
|
||||
yield ch
|
||||
case 'escape':
|
||||
if ch == 'S':
|
||||
state = 'sub_start'
|
||||
else:
|
||||
yield self.translate_issue_char(ch)
|
||||
state = 'normal'
|
||||
match ch:
|
||||
case 'S':
|
||||
state = 'sub_start'
|
||||
case '\\':
|
||||
yield '\\'
|
||||
state = 'normal'
|
||||
case _:
|
||||
yield self.translate_issue_char(ch)
|
||||
state = 'normal'
|
||||
case 'sub_start':
|
||||
if ch == '{': # }
|
||||
state = 'sub'
|
||||
|
|
|
|||
Loading…
Reference in a new issue