浏览代码

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
 	[
 		{