From 7933bdb17dc3e40fd733123eb4fda9fb7bcb8308 Mon Sep 17 00:00:00 2001 From: Izzy Muerte <63051+bruxisma@users.noreply.github.com> Date: Sun, 2 Nov 2025 20:24:59 -0800 Subject: [PATCH] Remove erroneous priority for CData in xml highlights to permit user injections Fixes #8242 Thought the issue this resolves was closed as "not planned", after further discussion, I was able to explain that the current priority breaks *some* template languages that rely on text existing inside of a `<[CDATA[` inside of a tag. Additionally, this priority seems to be leftover from when this file was first committed, but there is no indication for why it is present, and it is possible it is a leftover from some debugging. This change does not break existing injections that currently ship with `nvim-treesitter`, but instead allows additional injections to be defined by users, like those found in the Max/MSP Jitter XML Shader format. --- queries/xml/highlights.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/queries/xml/highlights.scm b/queries/xml/highlights.scm index 85e6e9bb4..5ac9dd925 100644 --- a/queries/xml/highlights.scm +++ b/queries/xml/highlights.scm @@ -189,11 +189,10 @@ ; Text (CharData) @none @spell -((CDSect +(CDSect (CDStart) @module (CData) @markup.raw "]]>" @module) - (#set! priority 105)) ; Misc (Comment) @comment @spell