diff --git a/queries/rust/context.scm b/queries/rust/context.scm index 1f9141ec..42ce5efe 100644 --- a/queries/rust/context.scm +++ b/queries/rust/context.scm @@ -115,3 +115,8 @@ (macro_definition name: (_) @context.end ) @context + +; let = {} +(let_declaration + value: (block (_) @context.end) +) @context diff --git a/test/lang/test.rs b/test/lang/test.rs index 18677bc1..4d3c9c06 100644 --- a/test/lang/test.rs +++ b/test/lang/test.rs @@ -218,3 +218,23 @@ union Bar { c: u32, } + +// {{TEST}} +fn letblock() { // {{CONTEXT}} + + let _foo = { // {{CONTEXT}} + + + + + + + + + + + + // {{CURSOR}} + } + +}