diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:13:59 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-15 22:13:59 -0700 |
commit | 86c2eee37cf292677032e02f553710d4c1eb1f04 (patch) | |
tree | 12de020d6fef10c028344a0fc320a6ab750f48d1 /pygments/lexers/fantom.py | |
parent | 78e09bf1384aa4439f56811b08a2b79ddd440b77 (diff) | |
download | pygments-86c2eee37cf292677032e02f553710d4c1eb1f04.tar.gz |
Curly brace escaping, round 1.
These locations were all found by regexlint and done semi-manually, leaving
braces within [] alone (they aren't special in the 'regex' module).
Diffstat (limited to 'pygments/lexers/fantom.py')
-rw-r--r-- | pygments/lexers/fantom.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/fantom.py b/pygments/lexers/fantom.py index c05cb8e8..25a9e027 100644 --- a/pygments/lexers/fantom.py +++ b/pygments/lexers/fantom.py @@ -79,7 +79,7 @@ class FantomLexer(RegexLexer): (r'\\"', String.Escape), # Escaped " (r'\\`', String.Escape), # Escaped ` (r'\$\w+', String.Interpol), # Subst var - (r'\${.*?}', String.Interpol), # Subst expr + (r'\$\{.*?\}', String.Interpol), # Subst expr (r'"', Punctuation, '#pop'), # Closing quot (r'.', String) # String content ], @@ -88,7 +88,7 @@ class FantomLexer(RegexLexer): (r'\\"', String.Escape), # Escaped " (r'\\`', String.Escape), # Escaped ` (r'\$\w+', String.Interpol), # Subst var - (r'\${.*?}', String.Interpol), # Subst expr + (r'\$\{.*?\}', String.Interpol), # Subst expr (r'`', Punctuation, '#pop'), # Closing tick (r'.', String.Backtick) # URI content ], |