summaryrefslogtreecommitdiff
path: root/pygments/lexers/rust.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-04-12 15:49:19 +0200
committerGeorg Brandl <georg@python.org>2021-04-12 15:54:02 +0200
commitd790cbde60bc44e5c98bcb4bcdf1704da3b59f8c (patch)
treeefc5df4fd913760c5f29c0c8740eb88197601d60 /pygments/lexers/rust.py
parent472929da0faab0167326bc1d33b556907930551b (diff)
downloadpygments-git-d790cbde60bc44e5c98bcb4bcdf1704da3b59f8c.tar.gz
Rust: fix raw string token
Fixes #1771
Diffstat (limited to 'pygments/lexers/rust.py')
-rw-r--r--pygments/lexers/rust.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/rust.py b/pygments/lexers/rust.py
index 172855e0..6cb8291d 100644
--- a/pygments/lexers/rust.py
+++ b/pygments/lexers/rust.py
@@ -135,7 +135,7 @@ class RustLexer(RegexLexer):
# String literals
(r'b"', String, 'bytestring'),
(r'"', String, 'string'),
- (r'b?r(#*)".*?"\1', String),
+ (r'(?s)b?r(#*)".*?"\1', String),
# Lifetime names
(r"'", Operator, 'lifetime'),