From 1ee43509faf86f5661cb7f2a06d53429eb349697 Mon Sep 17 00:00:00 2001 From: "K. Lux" Date: Thu, 19 Nov 2020 00:44:42 +0100 Subject: [PATCH] Rust lexer: changing rust macro type Rust macros seem to fit more into the "magic function" category than into the "builtin" one. --- pygments/lexers/rust.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py index 584916a53e..0d4bf5fcb3 100644 --- a/pygments/lexers/rust.py +++ b/pygments/lexers/rust.py @@ -52,7 +52,7 @@ class RustLexer(RegexLexer): 'module_path!', 'option_env!', 'panic!', 'print!', 'println!', 'stringify!', 'thread_local!', 'todo!', 'trace_macros!', 'unimplemented!', 'unreachable!', 'vec!', 'write!', 'writeln!', - )), Name.Builtin) + )), Name.Function.Magic) tokens = { 'root': [