mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-25 05:23:12 +00:00
Rename ra_syntax -> syntax
This commit is contained in:
parent
3d6889cba7
commit
a1c187eef3
958 changed files with 353 additions and 363 deletions
3980
crates/syntax/test_data/accidentally_quadratic
Normal file
3980
crates/syntax/test_data/accidentally_quadratic
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1 @@
|
|||
'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 1 "\'"
|
||||
> error0..1 token("\'") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 5 "\'🦀"
|
||||
> error0..5 token("\'🦀") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 5 "\'\\x7f"
|
||||
> error0..5 token("\'\\x7f") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 9 "\'\\u{20AA}"
|
||||
> error0..9 token("\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 2 "\' "
|
||||
> error0..2 token("\' ") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 2 "\'\\"
|
||||
> error0..2 token("\'\\") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 3 "\'\\n"
|
||||
> error0..3 token("\'\\n") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
'\'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
CHAR 3 "\'\\\'"
|
||||
> error0..3 token("\'\\\'") msg(Missing trailing `'` symbol to terminate the character literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 2 "b\'"
|
||||
> error0..2 token("b\'") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 6 "b\'🦀"
|
||||
> error0..6 token("b\'🦀") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 6 "b\'\\x7f"
|
||||
> error0..6 token("b\'\\x7f") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 10 "b\'\\u{20AA}"
|
||||
> error0..10 token("b\'\\u{20AA}") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 3 "b\' "
|
||||
> error0..3 token("b\' ") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 3 "b\'\\"
|
||||
> error0..3 token("b\'\\") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 4 "b\'\\n"
|
||||
> error0..4 token("b\'\\n") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b'\'
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE 4 "b\'\\\'"
|
||||
> error0..4 token("b\'\\\'") msg(Missing trailing `'` symbol to terminate the byte literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 1 "\""
|
||||
> error0..1 token("\"") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 5 "\"🦀"
|
||||
> error0..5 token("\"🦀") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 5 "\"\\x7f"
|
||||
> error0..5 token("\"\\x7f") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 9 "\"\\u{20AA}"
|
||||
> error0..9 token("\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 2 "\" "
|
||||
> error0..2 token("\" ") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 2 "\"\\"
|
||||
> error0..2 token("\"\\") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 3 "\"\\n"
|
||||
> error0..3 token("\"\\n") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
"\"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
STRING 3 "\"\\\""
|
||||
> error0..3 token("\"\\\"") msg(Missing trailing `"` symbol to terminate the string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 2 "b\""
|
||||
> error0..2 token("b\"") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 6 "b\"🦀"
|
||||
> error0..6 token("b\"🦀") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 6 "b\"\\x7f"
|
||||
> error0..6 token("b\"\\x7f") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 10 "b\"\\u{20AA}"
|
||||
> error0..10 token("b\"\\u{20AA}") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 3 "b\" "
|
||||
> error0..3 token("b\" ") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 3 "b\"\\"
|
||||
> error0..3 token("b\"\\") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 4 "b\"\\n"
|
||||
> error0..4 token("b\"\\n") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
b"\"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
BYTE_STRING 4 "b\"\\\""
|
||||
> error0..4 token("b\"\\\"") msg(Missing trailing `"` symbol to terminate the byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 4 "r##\""
|
||||
> error0..4 token("r##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 8 "r##\"🦀"
|
||||
> error0..8 token("r##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 8 "r##\"\\x7f"
|
||||
> error0..8 token("r##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 12 "r##\"\\u{20AA}"
|
||||
> error0..12 token("r##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 5 "r##\" "
|
||||
> error0..5 token("r##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 5 "r##\"\\"
|
||||
> error0..5 token("r##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##"\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 6 "r##\"\\n"
|
||||
> error0..6 token("r##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 5 "br##\""
|
||||
> error0..5 token("br##\"") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"🦀
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 9 "br##\"🦀"
|
||||
> error0..9 token("br##\"🦀") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"\x7f
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 9 "br##\"\\x7f"
|
||||
> error0..9 token("br##\"\\x7f") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"\u{20AA}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 13 "br##\"\\u{20AA}"
|
||||
> error0..13 token("br##\"\\u{20AA}") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 6 "br##\" "
|
||||
> error0..6 token("br##\" ") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"\
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 6 "br##\"\\"
|
||||
> error0..6 token("br##\"\\") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##"\n
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 7 "br##\"\\n"
|
||||
> error0..7 token("br##\"\\n") msg(Missing trailing `"` with `#` symbols to terminate the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r##
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_STRING 3 "r##"
|
||||
> error0..3 token("r##") msg(Missing `"` symbol after `#` symbols to begin the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br##
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
RAW_BYTE_STRING 4 "br##"
|
||||
> error0..4 token("br##") msg(Missing `"` symbol after `#` symbols to begin the raw byte string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
r## I lack a quote!
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
RAW_STRING 4 "r## "
|
||||
IDENT 1 "I"
|
||||
WHITESPACE 1 " "
|
||||
IDENT 4 "lack"
|
||||
WHITESPACE 1 " "
|
||||
IDENT 1 "a"
|
||||
WHITESPACE 1 " "
|
||||
IDENT 5 "quote"
|
||||
BANG 1 "!"
|
||||
> error0..4 token("r## ") msg(Missing `"` symbol after `#` symbols to begin the raw string literal)
|
||||
|
|
@ -0,0 +1 @@
|
|||
br## I lack a quote!
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue