fix r roxygen comment highlighting #2086

pull/2748/head
nreed 4 years ago
parent 65554d83e3
commit e50e2a274b

@ -23,44 +23,6 @@ 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
[
{

@ -270,9 +270,6 @@ export const language = <languages.IMonarchLanguage>{
tokenizer: {
root: [
// Raw string literals
[/r(?=#*")/, { token: 'string.raw', bracket: '@open', next: '@stringraw' }],
[
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
{
cases: {

Loading…
Cancel
Save