From e50e2a274b357bb920c44e9b9b3890d2b9b432be Mon Sep 17 00:00:00 2001 From: nreed Date: Wed, 14 Jul 2021 17:16:49 -0400 Subject: [PATCH] fix r roxygen comment highlighting #2086 --- src/rust/rust.test.ts | 38 -------------------------------------- src/rust/rust.ts | 3 --- 2 files changed, 41 deletions(-) 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: {