Skip to content

Commit e365b85

Browse files
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).
1 parent 7ee1f13 commit e365b85

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

queries/org/highlights.scm

+2-4
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,5 @@
3939
(directive) @org.directive
4040
(row "|" @org.table.delimiter)
4141
(cell "|" @org.table.delimiter)
42-
(table
43-
(row (cell (contents) @org.table.heading))
44-
(hr) @org.table.delimiter
45-
)
42+
(table (row (cell (contents) @org.table.heading)))
43+
(table (hr) @org.table.delimiter)

0 commit comments

Comments
 (0)