diff --git a/src/basic-languages/rust/rust.ts b/src/basic-languages/rust/rust.ts index 24e764f433..e862fbf863 100644 --- a/src/basic-languages/rust/rust.ts +++ b/src/basic-languages/rust/rust.ts @@ -140,12 +140,41 @@ export const language = { constants: ['true', 'false', 'Some', 'None', 'Ok', 'Err'], supportMacros: [ + 'assert!', + 'assert_eq!', + 'assert_ne!', + 'cfg!', + 'column!', + 'compile_error!', + 'concat!', + 'dbg!', + 'debug_assert!', + 'debug_assert_eq!', + 'debug_assert_ne!', + 'env!', + 'eprint!', + 'eprintln!', + 'file!', 'format!', + 'format_args!', + 'include!', + 'include_bytes!', + 'include_str!', + 'is_x86_feature_detected!', + 'line!', + 'matches!', + 'module_path!', + 'option_env!', + 'panic!', 'print!', 'println!', - 'panic!', - 'format_args!', + 'stringify!', + 'thread_local!', + 'todo!', + 'try!', + 'unimplemented!', 'unreachable!', + 'vec!', 'write!', 'writeln!' ],