Added raw string tests

pull/2748/head
nreed 4 years ago
parent 5fa50ecc21
commit 3765313249

@ -23,6 +23,44 @@ testTokenization('rust', [
]
}
],
// Raw String
[
{
line: 'r"This is a raw string" ',
tokens: [
{ startIndex: 0, type: 'string.raw.rust' },
{ startIndex: 23, type: 'white.rust' },
]
}
],
[
{
line: 'r#"This is a raw string"# ',
tokens: [
{ startIndex: 0, type: 'string.raw.rust' },
{ startIndex: 25, type: 'white.rust' },
]
}
],
[
{
line: 'r##"This is a# raw string"## ',
tokens: [
{ startIndex: 0, type: 'string.raw.rust' },
{ startIndex: 28, type: 'white.rust' },
]
}
],
[
{
line: 'r###"This is ##"#"##a raw### string"### ',
tokens: [
{ startIndex: 0, type: 'string.raw.rust' },
{ startIndex: 39, type: 'white.rust' },
]
}
],
// Byte literal
[
{

Loading…
Cancel
Save