From e365b85b4a5bfea507d77a16a7b66d8c6860e9b7 Mon Sep 17 00:00:00 2001 From: Kristijan Husak Date: Wed, 14 Aug 2024 11:56:59 +0200 Subject: [PATCH] fix(highlights): Highlight table hr line separately There is a huge performance issue when multiple highlights are done under the single node selector, in this case (table). --- queries/org/highlights.scm | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/queries/org/highlights.scm b/queries/org/highlights.scm index 2e737a5db..4ba949b95 100644 --- a/queries/org/highlights.scm +++ b/queries/org/highlights.scm @@ -39,7 +39,5 @@ (directive) @org.directive (row "|" @org.table.delimiter) (cell "|" @org.table.delimiter) -(table - (row (cell (contents) @org.table.heading)) - (hr) @org.table.delimiter -) +(table (row (cell (contents) @org.table.heading))) +(table (hr) @org.table.delimiter)