Fix parser tests for 1.53

This commit is contained in:
Lukas Wirth 2021-06-17 18:09:44 +02:00
parent b6cb6d5abe
commit 02d25ab60d
54 changed files with 198 additions and 198 deletions

View file

@ -1,2 +1,2 @@
CHAR 1 "\'"
> error0..1 token("\'") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 1 "'"
> error0..1 token("'") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 5 "\'🦀"
> error0..5 token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 5 "'🦀"
> error0..5 token("'🦀") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 5 "\'\\x7f"
> error0..5 token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 5 "'\\x7f"
> error0..5 token("'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 9 "\'\\u{20AA}"
> error0..9 token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 9 "'\\u{20AA}"
> error0..9 token("'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 2 "\' "
> error0..2 token("\' ") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 2 "' "
> error0..2 token("' ") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 2 "\'\\"
> error0..2 token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 2 "'\\"
> error0..2 token("'\\") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 3 "\'\\n"
> error0..3 token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 3 "'\\n"
> error0..3 token("'\\n") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
CHAR 3 "\'\\\'"
> error0..3 token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal)
CHAR 3 "'\\'"
> error0..3 token("'\\'") msg(Missing trailing `'` symbol to terminate the character literal)

View file

@ -1,2 +1,2 @@
BYTE 2 "b\'"
> error0..2 token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 2 "b'"
> error0..2 token("b'") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 6 "b\'🦀"
> error0..6 token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 6 "b'🦀"
> error0..6 token("b'🦀") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 6 "b\'\\x7f"
> error0..6 token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 6 "b'\\x7f"
> error0..6 token("b'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 10 "b\'\\u{20AA}"
> error0..10 token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 10 "b'\\u{20AA}"
> error0..10 token("b'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 3 "b\' "
> error0..3 token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 3 "b' "
> error0..3 token("b' ") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 3 "b\'\\"
> error0..3 token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 3 "b'\\"
> error0..3 token("b'\\") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 4 "b\'\\n"
> error0..4 token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 4 "b'\\n"
> error0..4 token("b'\\n") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,2 +1,2 @@
BYTE 4 "b\'\\\'"
> error0..4 token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal)
BYTE 4 "b'\\'"
> error0..4 token("b'\\'") msg(Missing trailing `'` symbol to terminate the byte literal)

View file

@ -1,6 +1,6 @@
LIFETIME_IDENT 2 "\'1"
LIFETIME_IDENT 2 "'1"
WHITESPACE 1 "\n"
LIFETIME_IDENT 10 "\'1lifetime"
LIFETIME_IDENT 10 "'1lifetime"
WHITESPACE 1 "\n"
> error0..2 token("\'1") msg(Lifetime name cannot start with a number)
> error3..13 token("\'1lifetime") msg(Lifetime name cannot start with a number)
> error0..2 token("'1") msg(Lifetime name cannot start with a number)
> error3..13 token("'1lifetime") msg(Lifetime name cannot start with a number)

View file

@ -1,16 +1,16 @@
CHAR 3 "\'x\'"
CHAR 3 "'x'"
WHITESPACE 1 " "
CHAR 3 "\' \'"
CHAR 3 "' '"
WHITESPACE 1 " "
CHAR 3 "\'0\'"
CHAR 3 "'0'"
WHITESPACE 1 " "
CHAR 7 "\'hello\'"
CHAR 7 "'hello'"
WHITESPACE 1 " "
CHAR 6 "\'\\x7f\'"
CHAR 6 "'\\x7f'"
WHITESPACE 1 " "
CHAR 4 "\'\\n\'"
CHAR 4 "'\\n'"
WHITESPACE 1 " "
CHAR 4 "\'\\\\\'"
CHAR 4 "'\\\\'"
WHITESPACE 1 " "
CHAR 4 "\'\\\'\'"
CHAR 4 "'\\''"
WHITESPACE 1 "\n"

View file

@ -1,8 +1,8 @@
LIFETIME_IDENT 2 "\'a"
LIFETIME_IDENT 2 "'a"
WHITESPACE 1 " "
LIFETIME_IDENT 4 "\'foo"
LIFETIME_IDENT 4 "'foo"
WHITESPACE 1 " "
LIFETIME_IDENT 12 "\'foo_bar_baz"
LIFETIME_IDENT 12 "'foo_bar_baz"
WHITESPACE 1 " "
LIFETIME_IDENT 2 "\'_"
LIFETIME_IDENT 2 "'_"
WHITESPACE 1 "\n"

View file

@ -1,22 +1,22 @@
BYTE 3 "b\'\'"
BYTE 3 "b''"
WHITESPACE 1 " "
BYTE 4 "b\'x\'"
BYTE 4 "b'x'"
WHITESPACE 1 " "
BYTE_STRING 6 "b\"foo\""
WHITESPACE 1 " "
BYTE_STRING 4 "br\"\""
WHITESPACE 1 "\n"
BYTE 6 "b\'\'suf"
BYTE 6 "b''suf"
WHITESPACE 1 " "
BYTE_STRING 5 "b\"\"ix"
WHITESPACE 1 " "
BYTE_STRING 6 "br\"\"br"
WHITESPACE 1 "\n"
BYTE 5 "b\'\\n\'"
BYTE 5 "b'\\n'"
WHITESPACE 1 " "
BYTE 5 "b\'\\\\\'"
BYTE 5 "b'\\\\'"
WHITESPACE 1 " "
BYTE 5 "b\'\\\'\'"
BYTE 5 "b'\\''"
WHITESPACE 1 " "
BYTE 8 "b\'hello\'"
BYTE 8 "b'hello'"
WHITESPACE 1 "\n"