Skip to content

Commit

Permalink
Rust lexer: changing rust macro type
Browse files Browse the repository at this point in the history
Rust macros seem to fit more into the "magic function" category than into the "builtin" one.
  • Loading branch information
K. Lux authored and birkenfeld committed Nov 19, 2020
1 parent 0744d68 commit 1ee4350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygments/lexers/rust.py
Expand Up @@ -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': [
Expand Down

0 comments on commit 1ee4350

Please sign in to comment.