Comments (5)
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.
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.
Might it be that Atom is using an outdated grammar?
from tree-sitter-ruby.
Yeah, I recently fixed this in 575d74b. We need to upgrade tree-sitter-ruby in Atom.
from tree-sitter-ruby.
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)
- Release new version? HOT 3
- Ruby parser.c size HOT 3
- Error: Binding arguments in strict mode
- Wrong Ruby indent when entering a `.` before `end` HOT 14
- Parsing fails with wasm version HOT 1
- 0.20.0 is not tagged HOT 3
- Incomplete method definition parses as if it ends on the first line
- `build-wasm` fails to produce working parser HOT 2
- Ruby `...` (triple-dot) syntax not properly handled HOT 1
- Proposal: Adopt YARP HOT 1
- eruby with comments 3 orders of magnitude slower
- Syntax error in one line `def` with a command call as right-hand side
- Add support for *.html.slim filetypes HOT 3
- Parse error in anonymous block arguments HOT 1
- Error `fatal error: 'cstring' file not found` when compiling in MacBook M2 HOT 2
- Request for latest release HOT 3
- bug: Compilation error during tree-sitter-ruby update HOT 2
- bug: highlight tests failing with tree-sitter 0.22.2
- feature: release tree-sitter 0.21 compatible version
- bug: String concatenation using << and without spaces considers it as a heredoc
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tree-sitter-ruby.