From 0b6c0ed1709291bbf67a47d066df4ea925069a7a Mon Sep 17 00:00:00 2001 From: blindfs Date: Thu, 19 Dec 2024 17:08:31 +0800 Subject: [PATCH] fix: pseudo scope_id workaround for the query capture issue --- languages/nu.scm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/languages/nu.scm b/languages/nu.scm index aba85d4..9529585 100644 --- a/languages/nu.scm +++ b/languages/nu.scm @@ -192,24 +192,26 @@ ;; new-line (comment) @prepend_input_softline @append_hardline +;; TODO: pseudo scope_id to cope with +;; https://github.com/tree-sitter/tree-sitter/discussions/3967 (nu_script (_) @append_begin_scope . - (_) @prepend_end_scope @prepend_empty_scoped_softline + (_) @prepend_end_scope @prepend_input_softline (#scope_id! "consecutive_scope") ) (block (_) @append_begin_scope . - (_) @prepend_end_scope @prepend_empty_scoped_softline + (_) @prepend_end_scope @prepend_input_softline (#scope_id! "consecutive_scope") ) (val_closure (_) @append_begin_scope . - (_) @prepend_end_scope @prepend_empty_scoped_softline + (_) @prepend_end_scope @prepend_input_softline (#scope_id! "consecutive_scope") )