Fix highlighting problem with ruby output #8

1 commit merged into from Sep 19, 2011


None yet
1 participant

AndrewRadev commented Sep 17, 2011

Since ruby output is marked as starting from =\s* to a space, method calls without braces get highlighted incorrectly. For example:

  h1 = link_to

In this case, is highlighted incorrectly as HTML.

This pull request fixes the issue and, as far as I've checked, doesn't seem to introduce any regressions. I have no idea why the delimiter was a space, though, so it's possible I've overlooked some use case.

ghost pushed a commit that referenced this pull request Sep 19, 2011

Brian Bommarito
Merge pull request #8 from AndrewRadev/fix-ruby-output-highlighting
Fix highlighting problem with ruby output

@ghost ghost merged commit 2d2fc34 into slim-template:master Sep 19, 2011

This issue was closed.

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