summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2019-06-02 16:22:55 +0200
committerGeorg Brandl <georg@python.org>2019-06-02 16:22:55 +0200
commitb505a9b87ea42177a0d687665f6348b3104406d2 (patch)
tree4dd99627cd92174c0196b6479434cb1d2d2fb93d
parent1a40a1ff89b235423891963f7160c507d6f73f3a (diff)
downloadpygments-b505a9b87ea42177a0d687665f6348b3104406d2.tar.gz
Fix encoding.
-rw-r--r--pygments/lexers/rust.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py
index 89be6963..f731785f 100644
--- a/pygments/lexers/rust.py
+++ b/pygments/lexers/rust.py
@@ -59,7 +59,7 @@ class RustLexer(RegexLexer):
tokens = {
'root': [
# rust allows a file to start with a shebang, but if the first line
- # starts with #![ then it’s not a shebang but a crate attribute.
+ # starts with #![ then it's not a shebang but a crate attribute.
(r'#![^[\r\n].*$', Comment.Preproc),
default('base'),
],
@@ -95,7 +95,7 @@ class RustLexer(RegexLexer):
(r'(default)(\s+)(type|fn)\b', bygroups(Keyword, Text, Keyword)),
keyword_types,
(r'self\b', Name.Builtin.Pseudo),
- # Prelude (taken from Rust’s src/libstd/prelude.rs)
+ # Prelude (taken from Rust's src/libstd/prelude.rs)
builtin_types,
# Path seperators, so types don't catch them.
(r'::\b', Text),