1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

toml: fix scanner escape collecting in literal strings (#12022)

This commit is contained in:
Larpon
2021-09-30 15:04:21 +02:00
committed by GitHub
parent d4b3c65c45
commit 8705db5844
4 changed files with 55 additions and 12 deletions

View File

@@ -13,3 +13,15 @@ two_space = """ ""two quotes"" """
mismatch1 = """aaa'''bbb"""
mismatch2 = '''aaa"""bbb'''
lit1 = '\'
lit2 = '\\'
lit3 = '\tricky\'
ml_lit1 = '''
\'''
ml_lit2 = '''\
\'''
ml_lit3 = '''\
tricky\
'''