Curly braces in interpolated string in Ruby-evaluated line do not highlight correctly #31

Open
amarshall opened this Issue Jan 7, 2012 · 1 comment

Projects

None yet

2 participants

@amarshall

When placing curly braces in an interpolated string in a Ruby-evaluated string (line starting with a single =), the matching for the syntax highlighting does not occur correctly, and the first closing brace is matched to the end of the interpolation, causing the rest of the interpolated code to be highlighted as if it were a string.

When it is regular HAML "text" line, i.e. a line starting with no = or starting with a ==, the highlighting occurs correctly.

Screenshot

@tpope
Owner
tpope commented Mar 3, 2012

This is pretty tricky to fix. The Haml highlighting turns off the "expensive" handling of vim-ruby because that expensive requires tracking things across multiple lines (and Ruby in Haml is one line by necessity), yet that same expensive mode is what prevents this from happening in Ruby files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment