From 24700382f2e1f9b1dac1de3e8170294cf0c818d4 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Fri, 29 Sep 2023 11:33:15 +0200 Subject: fix extracting body for shell issues The underlying problem is that tree-sitter does not allow for matching sibling nodes. So any issues comprised of line comments (vs. block comments) suffered from this issue, independent of the language (shell). Thus, we manually merge such sibling matches after running tree-grepper. --- src/extract-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/extract-nix.sh') diff --git a/src/extract-nix.sh b/src/extract-nix.sh index 335cbba..575131d 100755 --- a/src/extract-nix.sh +++ b/src/extract-nix.sh @@ -3,7 +3,7 @@ set -efu TREE_GREPPER_LANGUAGE=nix \ -TREE_GREPPER_QUERY='((comment)+)' \ +TREE_GREPPER_QUERY='(comment)' \ LINE_COMMENT_START='#' \ BLOCK_COMMENT_START='\/\*' \ BLOCK_COMMENT_END='\*\/' \ -- cgit v1.2.3