mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
Merge pull request #901 from BarePotato/master
Code Rust language addition
This commit is contained in:
commit
4ff0c1407f
2 changed files with 80 additions and 0 deletions
|
@ -72,6 +72,7 @@
|
|||
,"code_html"
|
||||
,"code_java"
|
||||
,"code_go"
|
||||
,"code_rust"
|
||||
,"twitch_emotes"
|
||||
,"pig_latin"
|
||||
]
|
||||
|
|
79
static/languages/code_rust.json
Normal file
79
static/languages/code_rust.json
Normal 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\")"
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue