소스 검색

Added byte string escape tests

nreed 4 년 전
부모
커밋
af103dd2f6
1개의 변경된 파일13개의 추가작업 그리고 1개의 파일을 삭제
  1. 13 1
      src/rust/rust.test.ts

+ 13 - 1
src/rust/rust.test.ts

@@ -38,7 +38,19 @@ testTokenization('rust', [
 			]
 		}
 	],
-
+	[
+		{
+			line: "'\"'",
+			tokens: [{ startIndex: 0, type: 'string.byteliteral.rust' }]
+		}
+	],
+	[
+		{
+			line: "'\0'",
+			tokens: [{ startIndex: 0, type: 'string.byteliteral.rust' }]
+		}
+	],
+	
 	// Comment
 	[
 		{