Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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 page.name

In this case, page.name 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 ghost pushed a commit that referenced this pull request Sep 19, 2011

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