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) Character literal notation not supported for some cases #2950
Comments
Good find. How did you get the expected behavior shot? :) Is there a PR forthcoming? :) I think all of these look fixable at first glance. |
Agreed, most should be a simple regex change, though I don't quite understand why the single unicode char ( I might look into a PR later, but for the expected image I manually hacked the html. :D |
It's not in the regex?
I am not sure that \S works with fancy UTF-8 stuff. |
|
Ah, but that character does not form a word boundary so If we're going to fix this we need variants, not one big regex. :) |
Describe the issue
Only some cases of Character Literals seem to be supported.
Support is missing for the following groups of cases (in decreasing importance):
?/
), breaks following lines as it gets treated as starting a regex?\\
)?あ
)?\u{1AF9}
)?\C-a
)Which language seems to have the issue?
ruby
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
Expected behavior
Additional context
Seen in this StackExchange/CodeGolf answer: https://codegolf.stackexchange.com/a/217367/25026
The text was updated successfully, but these errors were encountered: