From 3ff8adb2bbc36e0376118b3993878fc0402f9b45 Mon Sep 17 00:00:00 2001 From: Shawon Date: Thu, 29 May 2025 08:29:48 +0600 Subject: [PATCH] fix(parsers): Updated qf query files - Adds highlighting for new node(s). - Removes non-standard injection rule. --- runtime/queries/qf/highlights.scm | 36 ++++++++++++++++++++----------- runtime/queries/qf/injections.scm | 7 ------ 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/runtime/queries/qf/highlights.scm b/runtime/queries/qf/highlights.scm index 899614ae4..5f0b31e95 100644 --- a/runtime/queries/qf/highlights.scm +++ b/runtime/queries/qf/highlights.scm @@ -1,20 +1,25 @@ -"|" @punctuation.delimiter - -"col" @keyword - [ - (row) - (col) -] @number + "|" + "-" +] @punctuation.delimiter (filename) @string.special.path -((code_block) @markup.raw.block - (#set! priority 90)) +(row + [ + (value) + (from) + (to) + ] @number) -(code_block - (language_delimiter) @markup.raw.block - (#set! conceal "")) +"col" @keyword + +(col + [ + (value) + (from) + (to) + ] @number) ((item_type) @comment.error (#eq? @comment.error "error")) @@ -24,3 +29,10 @@ ((item_type) @comment.note (#eq? @comment.note "note")) + +((code_block) @markup.raw.block + (#set! priority 90)) + +(code_block + (language_delimiter) @markup.raw.block + (#set! conceal "")) diff --git a/runtime/queries/qf/injections.scm b/runtime/queries/qf/injections.scm index 9959f1b91..15e65f77a 100644 --- a/runtime/queries/qf/injections.scm +++ b/runtime/queries/qf/injections.scm @@ -1,10 +1,3 @@ -; Specified language. -; filename.lua | 10 col 5 | >!lua!< local value = 10; -(code_block - (language_delimiter) @injection.language - (content) @injection.content - (#offset! @injection.language 0 2 0 -2)) - ; Automatic language(slightly inaccurate). ; filename.lua | 10 col 5 | local value = 10; (quickfix_item