summaryrefslogtreecommitdiff
path: root/pygments/lexers/ruby.py
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-06 19:46:21 -0700
committerTim Hatch <tim@timhatch.com>2014-10-06 19:46:21 -0700
commitdb54045f07300a47e4a603687fdcef89f29a2b12 (patch)
treea19dfa01cd8a6ec09daf2b66304e124d89dac755 /pygments/lexers/ruby.py
parent5bbc0d44482b05c9467b737c4e217d5501203fc7 (diff)
downloadpygments-db54045f07300a47e4a603687fdcef89f29a2b12.tar.gz
RubyLexer: Keep state with nested interpolations
Fixes #1018
Diffstat (limited to 'pygments/lexers/ruby.py')
-rw-r--r--pygments/lexers/ruby.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/ruby.py b/pygments/lexers/ruby.py
index e9973eea..52ba23ad 100644
--- a/pygments/lexers/ruby.py
+++ b/pygments/lexers/ruby.py
@@ -335,7 +335,8 @@ class RubyLexer(ExtendedRegexLexer):
include('root')
],
'in-intp': [
- ('}', String.Interpol, '#pop'),
+ (r'{', String.Interpol, '#push'),
+ (r'}', String.Interpol, '#pop'),
include('root'),
],
'string-intp': [