refactor: remove include-children from queries (#5226)

These `include-children` were to alleviate an issue with empty range language tree, which has been fixed for Neovim nightly/Neovim 0.9.2
This commit is contained in:
Pham Huy Hoang 2023-09-12 15:36:50 +09:00 committed by GitHub
parent 15d327fe63
commit bfb4601f48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 32 additions and 58 deletions

View file

@ -33,10 +33,10 @@
(#lua-match? @injection.content "^%s*;+%s?query")
(#set! injection.language "query"))
((comment) @injection.content
(#lua-match? @injection.content "^[-][-][-][%s]*@")
(comment
content: (_) @injection.content
(#lua-match? @injection.content "^[-][%s]*@")
(#set! injection.language "luadoc")
(#set! injection.include-children)
(#offset! @injection.content 0 3 0 0))
; string.match("123", "%d+")
@ -87,6 +87,6 @@
(#set! injection.language "luap")
(#set! injection.include-children))))
((comment) @injection.content
(#set! injection.language "comment")
(#set! injection.include-children))
(comment
content: (_) @injection.content
(#set! injection.language "comment"))