summaryrefslogtreecommitdiff
path: root/pygments/lexers/ruby.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/ruby.py')
-rw-r--r--pygments/lexers/ruby.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/ruby.py b/pygments/lexers/ruby.py
index 096c6dc8..2becb101 100644
--- a/pygments/lexers/ruby.py
+++ b/pygments/lexers/ruby.py
@@ -342,12 +342,12 @@ class RubyLexer(ExtendedRegexLexer):
include('root')
],
'in-intp': [
- (r'{', String.Interpol, '#push'),
- (r'}', String.Interpol, '#pop'),
+ (r'\{', String.Interpol, '#push'),
+ (r'\}', String.Interpol, '#pop'),
include('root'),
],
'string-intp': [
- (r'#{', String.Interpol, 'in-intp'),
+ (r'#\{', String.Interpol, 'in-intp'),
(r'#@@?[a-zA-Z_]\w*', String.Interpol),
(r'#\$[a-zA-Z_]\w*', String.Interpol)
],