Skip to content

Commit

Permalink
Fix gitcommit highlighting for new parser
Browse files Browse the repository at this point in the history
The "overflow" node type was removed in this PR:
gbprod/tree-sitter-gitcommit#68
  • Loading branch information
deathlyfrantic committed Jul 11, 2024
1 parent b3c3bcf commit c88fdc5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion nvim/after/queries/gitcommit/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
; extends

(subject (overflow) @gitcommit_error)
(ERROR) @gitcommit_error

((subject) @gitcommit_error
(#vim-match? @gitcommit_error ".\{50,}")
(#offset! @gitcommit_error 0 50 0 0))

((message_line) @gitcommit_error
(#vim-match? @gitcommit_error ".\{72,}")
(#offset! @gitcommit_error 0 72 0 0))

0 comments on commit c88fdc5

Please sign in to comment.