-
Notifications
You must be signed in to change notification settings - Fork 61
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 ternary operator and regex highlighting #69
Comments
Contains following changes:
As show in the test file, this is not full fixed, I think maybe further complex work is needed to handle ternary operator not followed by space (not a good code style though). # TODO: space after '?' and ':' is not needed
puts true ?ab : cd
puts true ? /d+/ : /w+/
puts false ?ab : cd
puts false ? /d+/ : /w+/ |
One of the hassles with
The original LexRuby.cxx uses space indentation so its best to maintain that. Can't see how it is supposed to disambiguate |
Removed I also not find how to disambiguate them, but |
For line 5, This hasn't changed but the example will cause trouble with TestLexers due to the bytes of |
Fixed |
Correct handling of multi-byte character literal.
Pushed in 2 commits listed above. |
Included in 5.1.7 release. |
Created for https://sourceforge.net/p/scintilla/bugs/1927/ and https://sourceforge.net/p/scintilla/bugs/2126/
Here need update for
?
(question mark single character string) and:
(symbol).https://ruby-doc.org/core-3.1.1/doc/syntax/literals_rdoc.html#label-Strings
https://ruby-doc.org/core-3.1.1/doc/syntax/literals_rdoc.html#label-Symbol+Literals
The text was updated successfully, but these errors were encountered: