fix r roxygen comment highlighting #2086

This commit is contained in:
nreed 2021-07-14 17:16:49 -04:00
parent 65554d83e3
commit e50e2a274b
2 changed files with 0 additions and 41 deletions

View file

@ -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 // Byte literal
[ [
{ {

View file

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