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 lexer does not detect defined? as a keyword for parenthesized argument #1241

Closed
ashmaroli opened this issue Jul 1, 2019 · 1 comment · Fixed by #1247
Closed

Ruby lexer does not detect defined? as a keyword for parenthesized argument #1241

ashmaroli opened this issue Jul 1, 2019 · 1 comment · Fixed by #1247
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@ashmaroli
Copy link
Contributor

Name of the lexer

ruby

Code sample

raise "Hellfire" unless defined?(Rouge)
state :peace do
  load 'rouge'
end

Screenshots

Ruby Visual Test

Additional context

Unlike other keywords which are usually flanked by whitespace, defined? is mostly used with parentheses.

@ashmaroli ashmaroli added the bugfix-request A request for a bugfix to be developed. label Jul 1, 2019
@ashmaroli
Copy link
Contributor Author

Note: super is another keyword that may also be called with parenthesis, albeit resulting in different semantics.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant