diff options
| author | Georg Brandl <georg@python.org> | 2021-04-12 15:49:19 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-04-12 15:54:02 +0200 |
| commit | d790cbde60bc44e5c98bcb4bcdf1704da3b59f8c (patch) | |
| tree | efc5df4fd913760c5f29c0c8740eb88197601d60 /pygments/lexers/rust.py | |
| parent | 472929da0faab0167326bc1d33b556907930551b (diff) | |
| download | pygments-git-d790cbde60bc44e5c98bcb4bcdf1704da3b59f8c.tar.gz | |
Rust: fix raw string token
Fixes #1771
Diffstat (limited to 'pygments/lexers/rust.py')
| -rw-r--r-- | pygments/lexers/rust.py | 2 |
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'), |
