diff options
author | Tim Hatch <tim@timhatch.com> | 2014-10-06 19:46:21 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2014-10-06 19:46:21 -0700 |
commit | db54045f07300a47e4a603687fdcef89f29a2b12 (patch) | |
tree | a19dfa01cd8a6ec09daf2b66304e124d89dac755 /pygments/lexers/ruby.py | |
parent | 5bbc0d44482b05c9467b737c4e217d5501203fc7 (diff) | |
download | pygments-db54045f07300a47e4a603687fdcef89f29a2b12.tar.gz |
RubyLexer: Keep state with nested interpolations
Fixes #1018
Diffstat (limited to 'pygments/lexers/ruby.py')
-rw-r--r-- | pygments/lexers/ruby.py | 3 |
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': [ |