summaryrefslogtreecommitdiff
path: root/pygments/lexers/compiled.py
diff options
context:
space:
mode:
authorCorey Richardson <corey@octayn.net>2014-01-20 03:08:18 -0500
committerCorey Richardson <corey@octayn.net>2014-01-20 03:08:18 -0500
commit6a98c929f8ff025f013a94d8a7e73c49b4c00a05 (patch)
treeb965537b9bafc03b2d147dd442412691f6252be4 /pygments/lexers/compiled.py
parent1b056850b148766c84212390ae469f5db38fe92c (diff)
downloadpygments-6a98c929f8ff025f013a94d8a7e73c49b4c00a05.tar.gz
Address more comments
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r--pygments/lexers/compiled.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 0da839e9..5e345b81 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -3213,7 +3213,7 @@ class RustLexer(RegexLexer):
r'|yield)\b', Keyword.Reserved),
(r'(mod|use)\b', Keyword.Namespace),
(r'(true|false)\b', Keyword.Constant),
- (r'let', Keyword.Declaration),
+ (r'let\b', Keyword.Declaration),
(r'(u8|u16|u32|u64|i8|i16|i32|i64|uint|int|f32|f64'
r'|str|bool)\b', Keyword.Type),
(r'self\b', Name.Builtin.Pseudo),
@@ -3260,7 +3260,8 @@ class RustLexer(RegexLexer):
(r'[0-9][0-9_]*(\.[0-9_]+[eE][+\-]?'
r'[0-9_]+|\.[0-9_]*|[eE][+\-]?[0-9_]+)?', Number, 'number_lit'),
# String Literal
- (r'("|r")', String, 'string'),
+ (r'"', String, 'string'),
+ (r'r(#*)".*?"\1', String.Raw),
# Operators and Punctuation
(r'[{}()\[\],.;]', Punctuation),