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

Incorrect matching when there is a method named "end" #241

Closed
jimfoltz opened this issue Nov 30, 2014 · 2 comments
Closed

Incorrect matching when there is a method named "end" #241

jimfoltz opened this issue Nov 30, 2014 · 2 comments
Labels

Comments

@jimfoltz
Copy link

This might a rare situation. The SketchUp Ruby API has several classes that have a method named end[1]

In the following working example, pressing % on module will jump to the end for the def self.do_it method rather than the final end.

module Namespace

  def self.do_it
    model = Sketchup.active_model
    ents = model.entities
    edge = entities.add_line(ORIGIN, [1, 1, 0])
    start_vertex = edge.start
    end_vertex = edge.end 
  end

end

[1] http://www.sketchup.com/intl/en/developer/docs/ourdoc/constructionline

@AndrewRadev
Copy link
Member

Sorry it took a while to get to this issue. I've just pushed a potential fix. Could you try it out and let me know if it works for you?

@jimfoltz
Copy link
Author

Sorry for the delay - yes this appears to be working very well. Thank you.

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

No branches or pull requests

3 participants