We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In Ruby, &. is a null-safe property accessor like ?. in some other languages.
&.
?.
foo[0]&.bar # ^^ punctuation.accessor - keyword
I think all that's needed is a negative lookahead for (?!\.) on the bitwise & and &? on the various accessor matches.
(?!\.)
&
&?
The text was updated successfully, but these errors were encountered:
[Ruby] Safe accessor
c532b31
Fixes sublimehq#3813
6759669
Successfully merging a pull request may close this issue.
What happened?
In Ruby,
&.
is a null-safe property accessor like?.
in some other languages.I think all that's needed is a negative lookahead for
(?!\.)
on the bitwise&
and&?
on the various accessor matches.The text was updated successfully, but these errors were encountered: