Skip to content

Commit

Permalink
Merge pull request #988 from LegNeato/rust_aliases
Browse files Browse the repository at this point in the history
Add additional aliases for Rust
  • Loading branch information
dblessing authored Sep 21, 2018
2 parents f8f2295 + 8eb6587 commit c2daa8d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/rouge/lexers/rust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ class Rust < RegexLexer
title "Rust"
desc 'The Rust programming language (rust-lang.org)'
tag 'rust'
aliases 'rs'
aliases 'rs',
# So that directives from https://github.com/budziq/rust-skeptic
# do not prevent highlighting.
'rust,no_run', 'rs,no_run',
'rust,ignore', 'rs,ignore',
'rust,should_panic', 'rs,should_panic'
filenames '*.rs'
mimetypes 'text/x-rust'

Expand Down

0 comments on commit c2daa8d

Please sign in to comment.