Skip to content

Conversation

@tronikelis
Copy link
Contributor

Adding rusts variable to block binding as a context

@tronikelis
Copy link
Contributor Author

hey, getting this error

test/contexts_spec.lua:190: test for cursor 234 failed
Expected objects to be the same.
Passed in:
(table: 0x7fa34472c1c8) {
 *[1] = 222
  [2] = 224 }
Expected:
(table: 0x7fa3446f9b60) {
 *[1] = 224 }

Looked at other examples test and it seems that I'm doing everything correctly, the new context works as expected in the editor

PS: im a noob at queries so maybe I'm not understanding something

@lewis6991
Copy link
Member

It's a test. You need to update the test since you changed the queries.

@tronikelis tronikelis force-pushed the feat/rust_equals_block branch from 2f8b432 to cf47e90 Compare September 2, 2025 16:18
@tronikelis
Copy link
Contributor Author

It's a test. You need to update the test since you changed the queries.

Oh right 🤦 I just needed to add // {{CONTEXT}} to the function as well, right

@tronikelis
Copy link
Contributor Author

Should be good now

@lewis6991 lewis6991 merged commit 66a9b5f into nvim-treesitter:master Sep 3, 2025
4 checks passed
@tronikelis tronikelis deleted the feat/rust_equals_block branch October 21, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants