diff options
author | Georg Brandl <georg@python.org> | 2014-01-20 09:31:54 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-01-20 09:31:54 +0100 |
commit | 58c8c64ec9444d7929460cc5a9c34b78f1739ec7 (patch) | |
tree | e23aac87c7aeaa736508b080324634a5c8175d66 /pygments/lexers/compiled.py | |
parent | 50a10ba2ff48c222437b584658332d83bf351bed (diff) | |
download | pygments-58c8c64ec9444d7929460cc5a9c34b78f1739ec7.tar.gz |
Rust lexer: regex fix.
Diffstat (limited to 'pygments/lexers/compiled.py')
-rw-r--r-- | pygments/lexers/compiled.py | 8 |
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'), |