Comments (6)
I just take a quick look at the query, I think the problem in this query
nvim-treesitter-textobjects/queries/zig/textobjects.scm
Lines 11 to 13 in b4da4d6
Just change this to, and why not ForStatement
. btw, i will test tomorrow morning
(ForTypeExpr
(ErrorUnionExpr
(SuffixExpr
(SwitchExpr) @loop.inner))) @loop.outer
from nvim-treesitter-textobjects.
I will update tonight, after I get back from work. The query is working. I think because I forgot update the new c generated file, or need to update the lockfile.json
from nvim-treesitter-textobjects.
@theHamsta i try the lastest commit nvim-treesitter/nvim-treesitter@1e4c846. The current query and parse compiled and work fine on my machine, with the commit hash lockfile.json.
- Nvim tree sitter repo
- Tree sitter zig repo
- Query on my machine
What should i do, The (paser + query) and The lockfile.json in two separate commit, but from 1 pull request. Is this the cause of the problem. I don't know how the CI work under the hood😕
from nvim-treesitter-textobjects.
@maxxnino the problem is with this query file https://github.com/nvim-treesitter/nvim-treesitter-textobjects/blob/master/queries/zig/textobjects.scm, it should be updated to use the queries from the new parser.
from nvim-treesitter-textobjects.
phew, I thought I mess something up, I don't know how the textobject work yet. It's late now, i will look at this tomorrow morning, and will try my best to update the query
from nvim-treesitter-textobjects.
Has been fixed by @maxxnino
from nvim-treesitter-textobjects.
Related Issues (20)
- [Question] Peeking both @function.outer & @class.outer with the same keybind
- selection_modes not working HOT 1
- inconsistency of selecting @conditional.inner across different languages HOT 1
- Mapping repeating movements as recommended breaks some repeated commands HOT 1
- C/C++ Grammer-related crash when opening file HOT 4
- Question: closures intentionally not captured under function.inner/outer ?
- textobject's select {...} keymaps don't function once timeoutlen is set to 0
- key, value textobjects don't work HOT 4
- FR: Confusion about filetype=sh, and treesitter language bash
- change inside function(@funcion.inner) doesn't work after first time HOT 1
- Is there any way to only select function signaure? HOT 1
- Nim parser fails at compiling and installs incorrectly HOT 7
- error on perl files HOT 1
- Rust @function.outer breaks with indentation HOT 1
- Swap Keymaps Not Being Used in TypeScript, Javascript, or Ruby Buffers HOT 4
- Allow multiple queries for `select` to increase configurability
- Richer Nix queries
- after nvim-treesitter/nvim-treesitter#6024, `nvim-treesitter-textobject` started showing errors HOT 1
- Scope locals not correct for lua files
- The `move` function is very slow on some large cpp files HOT 2
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 nvim-treesitter-textobjects.