diff --git a/src/rust/rust.test.ts b/src/rust/rust.test.ts index d1015ea8..51be2a86 100644 --- a/src/rust/rust.test.ts +++ b/src/rust/rust.test.ts @@ -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 [ { diff --git a/src/rust/rust.ts b/src/rust/rust.ts index 9640c627..428583c8 100644 --- a/src/rust/rust.ts +++ b/src/rust/rust.ts @@ -270,9 +270,6 @@ export const language = { 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: {