Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby syntax highlighting failures #209

Open
ylluminate opened this issue Apr 6, 2017 · 1 comment
Open

Ruby syntax highlighting failures #209

ylluminate opened this issue Apr 6, 2017 · 1 comment

Comments

@ylluminate
Copy link

The following provides results and an example of how Ruby is not being syntactically highlighted properly: http://idiosyncratic-ruby.com/1-test-highlights.html

@korny
Copy link
Member

korny commented Apr 9, 2017

Test case 1 is the problem here; CodeRay thinks the last part is a Symbol. Here's a minimal test case.

a?'b':c

Unfortunately, this isn't easy to fix. I tried to improve colon/Symbol detection in the past, and the current implementation is a result of these efforts. It works really well for a lot of cases, especially code that uses spaces correctly ;)

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

No branches or pull requests

2 participants