From 06ed2d4ddd09430d94b1016d04eba998988bbbc4 Mon Sep 17 00:00:00 2001 From: Angelo Fallaria Date: Tue, 22 Feb 2022 21:33:26 +0800 Subject: [PATCH] feat(language): add more words to code_rust.json (#2563) --- frontend/static/languages/code_rust.json | 81 +++++++++++++++++++++++- 1 file changed, 80 insertions(+), 1 deletion(-) diff --git a/frontend/static/languages/code_rust.json b/frontend/static/languages/code_rust.json index 04daf3fe8..a59f31a1b 100644 --- a/frontend/static/languages/code_rust.json +++ b/frontend/static/languages/code_rust.json @@ -65,34 +65,113 @@ "i32", "i64", "i128", + "f32", + "f64", "isize", "bool", "char", "str", "&str", + "[0; 3]", + "[bool; 5]", + "[i32; 8]", + "[f32; 3]", + "&[u8]", + "&[u16]", + "()", + "(i32, i32)", + "(&str, f32, u8)", + "Vec", "Vec::new()", "Vec", + "Vec", + "Vec", + "Vec", + "Vec", + "Vec<&str>", + "Vec", "vec![]", "HashMap", + "HashMap::new()", "String", + "String::new()", + "&String", "String::from(\"monkeytype\")", + "\"monkeytype\".to_string()", "collect::>()", + "trim()", + "parse()", + "len()", + "split(\" \")", + "push('a')", + "push_str(\"bar\")", + "contains(\"foo\")", + "is_empty()", + "parse::()", + "chars()", + "to_lowercase()", + "to_uppercase()", + "replace(\"a\", \"b\")", "box", "lazy_static", "iter()", + "into_iter()", + "map(|s| s.trim())", "filter(|x| x.is_ok())", + "any(|x| x == 2)", "<'a>", + "&'a", "map", "BTreeMap", + "BTreeSet", "VecDeque", "LinkedList", "HashSet", "&'static", + "..", "..=", "?", "macro_rules!", + "{}", "{:?}", + "{:#?}", "format!", - "unwrap()" + "unwrap()", + "expect(\"fail\")", + "Ok(())", + "is_ok", + "is_err", + "is_some", + "is_none", + "assert!", + "assert_eq!", + "into()", + "try_into()", + "from()", + "clone()", + "std", + "std::io", + "std::collections", + "std::fs", + "std::fmt", + "std::env", + "std::num", + "std::path", + "std::process", + "io::Error", + "io::Result<()>", + "io::stdin()", + "read_line", + "fs::File", + "Path", + "PathBuf", + "Command", + "env::args()", + "super::*", + "#[derive(Debug)]", + "#[derive(PartialEq)]", + "#[cfg(test)]", + "#[test]" ] } +