Skip to content

Commit

Permalink
fix(highlights): Highlight table hr line separately
Browse files Browse the repository at this point in the history
There is a huge performance issue when multiple highlights are done
under the single node selector, in this case (table).
  • Loading branch information
kristijanhusak committed Aug 14, 2024
1 parent 7ee1f13 commit e365b85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions queries/org/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit e365b85

Please sign in to comment.