summaryrefslogtreecommitdiff
path: root/pygments/lexers/perl.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/perl.py')
-rw-r--r--pygments/lexers/perl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/perl.py b/pygments/lexers/perl.py
index c279f56d..df48e2be 100644
--- a/pygments/lexers/perl.py
+++ b/pygments/lexers/perl.py
@@ -163,7 +163,7 @@ class PerlLexer(RegexLexer):
(r'\s+', Text),
# argument declaration
(r'(\([$@%]*\))(\s*)', bygroups(Punctuation, Text)),
- (r'.*?{', Punctuation, '#pop'),
+ (r'.*?\{', Punctuation, '#pop'),
(r';', Punctuation, '#pop'),
],
'cb-string': [
@@ -545,7 +545,7 @@ class Perl6Lexer(ExtendedRegexLexer):
default(('#pop', 'pre-token')),
],
'token': [
- (r'}', Text, '#pop'),
+ (r'\}', Text, '#pop'),
(r'(?<=:)(?:my|our|state|constant|temp|let).*?;', using(this)),
# make sure that quotes in character classes aren't treated as strings
(r'<(?:[-!?+.]\s*)?\[.*?\]>', String.Regex),