Giter VIP home page Giter VIP logo

Comments (5)

issue-label-bot avatar issue-label-bot commented on September 10, 2024 1

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.59. Please mark this comment with ๐Ÿ‘ or ๐Ÿ‘Ž to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from tree-sitter-ruby.

patrickt avatar patrickt commented on September 10, 2024

Hmm. Definitely doesnโ€™t look like Atom is doing the right thing here. The tree seems plausible:

(program [0, 0] - [5, 0]
  (method_call [0, 0] - [4, 3]
    method: (call [0, 0] - [0, 8]
      receiver: (identifier [0, 0] - [0, 3])
      method: (identifier [0, 4] - [0, 8]))
    block: (do_block [0, 9] - [4, 3]
      (block_parameters [0, 12] - [0, 19]
        (identifier [0, 13] - [0, 18]))
      (method_call [1, 2] - [1, 12]
        method: (identifier [1, 2] - [1, 5])
        arguments: (argument_list [1, 5] - [1, 12]
          (identifier [1, 6] - [1, 11])))
      (rescue [2, 0] - [3, 11]
        exceptions: (exceptions [2, 7] - [2, 12]
          (identifier [2, 7] - [2, 12]))
        body: (then [2, 12] - [3, 11]
          (identifier [3, 2] - [3, 11]))))))

from tree-sitter-ruby.

patrickt avatar patrickt commented on September 10, 2024

Might it be that Atom is using an outdated grammar?

from tree-sitter-ruby.

maxbrunsfeld avatar maxbrunsfeld commented on September 10, 2024

Yeah, I recently fixed this in 575d74b. We need to upgrade tree-sitter-ruby in Atom.

from tree-sitter-ruby.

patrickt avatar patrickt commented on September 10, 2024

Looks like we should close this and reopen atom/language-ruby#274 (or a similar issue re. bumping tree-sitter-ruby).

from tree-sitter-ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.