Merge pull request #901 from BarePotato/master

Code Rust language addition
This commit is contained in:
Jack 2021-01-30 21:26:12 +00:00 committed by GitHub
commit 4ff0c1407f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 80 additions and 0 deletions

View file

@ -72,6 +72,7 @@
,"code_html"
,"code_java"
,"code_go"
,"code_rust"
,"twitch_emotes"
,"pig_latin"
]

View file

@ -0,0 +1,79 @@
{
"name": "code_rust",
"leftToRight": true,
"words": [
"as",
"async",
"await",
"break",
"const",
"continue",
"crate",
"dyn",
"else",
"enum",
"extern",
"false",
"fn",
"for",
"if",
"impl",
"in",
"let",
"loop",
"match",
"=>",
"->",
"Option",
"Result",
"Some(T)",
"None",
"Ok(T)",
"Err(E)",
"mod",
"move",
"mut",
"&mut",
"pub",
"ref",
"return",
"Self",
"self",
"static",
"struct",
"super",
"trait",
"true",
"type",
"union",
"unsafe",
"use",
"where",
"while",
"panic!()",
"println!(\"{}\", T)",
"(T, E)",
"u8",
"u16",
"u32",
"u64",
"u128",
"usize",
"i8",
"i16",
"i32",
"i64",
"i128",
"isize",
"bool",
"char",
"str",
"&str",
"Vec::new()",
"Vec<T>",
"vec![]",
"HashMap",
"String",
"String::from(\"monkeytype\")"
]
}