Selaa lähdekoodia

fix r roxygen comment highlighting #2086

nreed 4 vuotta sitten
vanhempi
commit
e50e2a274b
2 muutettua tiedostoa jossa 0 lisäystä ja 41 poistoa
  1. 0 38
      src/rust/rust.test.ts
  2. 0 3
      src/rust/rust.ts

+ 0 - 38
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
 	[
 		{

+ 0 - 3
src/rust/rust.ts

@@ -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: {