From 10be9bec8a7969a40d4fa3483b8317e0131b1715 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Wed, 15 Oct 2014 21:32:31 +0200 Subject: all lexers: fix unescaped { and } so that the "regex" module can compile our regexes --- pygments/lexers/fantom.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pygments/lexers/fantom.py') diff --git a/pygments/lexers/fantom.py b/pygments/lexers/fantom.py index fd850336..c05cb8e8 100644 --- a/pygments/lexers/fantom.py +++ b/pygments/lexers/fantom.py @@ -215,7 +215,7 @@ class FantomLexer(RegexLexer): (r':|,', Punctuation), (r'(?:(\w+)(::))?(\w+)', bygroups(Name.Namespace, Punctuation, Name.Class)), - (r'{', Punctuation, '#pop') + (r'\{', Punctuation, '#pop') ], 'using': [ (r'[ \t]+', Text), # consume whitespaces @@ -235,7 +235,7 @@ class FantomLexer(RegexLexer): ], 'facet': [ (r'\s+', Text), - (r'{', Punctuation, 'facetFields'), + (r'\{', Punctuation, 'facetFields'), default('#pop') ], 'facetFields': [ @@ -244,7 +244,7 @@ class FantomLexer(RegexLexer): include('operators'), (r'\s+', Text), (r'(\s*)(\w+)(\s*)(=)', bygroups(Text, Name, Text, Operator)), - (r'}', Punctuation, '#pop'), + (r'\}', Punctuation, '#pop'), (r'.', Text) ], } -- cgit v1.2.1