summaryrefslogtreecommitdiff
path: root/pygments/lexers/compiled.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-01-20 09:31:54 +0100
committerGeorg Brandl <georg@python.org>2014-01-20 09:31:54 +0100
commit58c8c64ec9444d7929460cc5a9c34b78f1739ec7 (patch)
treee23aac87c7aeaa736508b080324634a5c8175d66 /pygments/lexers/compiled.py
parent50a10ba2ff48c222437b584658332d83bf351bed (diff)
downloadpygments-58c8c64ec9444d7929460cc5a9c34b78f1739ec7.tar.gz
Rust lexer: regex fix.
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r--pygments/lexers/compiled.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py
index 5f6af295..22d3cd67 100644
--- a/pygments/lexers/compiled.py
+++ b/pygments/lexers/compiled.py
@@ -3350,12 +3350,12 @@ class RustLexer(RegexLexer):
(r'\\', String),
],
'macro{': [
- (r'{', Operator, '#push'),
- (r'}', Operator, '#pop'),
+ (r'\{', Operator, '#push'),
+ (r'\}', Operator, '#pop'),
],
'macro(': [
- (r'(', Operator, '#push'),
- (r')', Operator, '#pop'),
+ (r'\(', Operator, '#push'),
+ (r'\)', Operator, '#pop'),
],
'attribute_common': [
(r'"', String, 'string'),