From dddadce7e8f892d7766b3c33ced0b26b3b335039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kruszewski?= Date: Fri, 30 Dec 2022 21:45:17 +0100 Subject: [PATCH] troff filetype: Fix headings highlighting --- rc/filetype/troff.kak | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc/filetype/troff.kak b/rc/filetype/troff.kak index 59dd7794..d8e2e2bc 100644 --- a/rc/filetype/troff.kak +++ b/rc/filetype/troff.kak @@ -33,7 +33,8 @@ add-highlighter shared/troff/ regex '\\fI(.+?)\\f[A-Z]' 1:+i add-highlighter shared/troff/ regex '^\.[a-zA-Z]{1,2}\b' 0:meta add-highlighter shared/troff/ regex '^\.\.$' 0:meta add-highlighter shared/troff/ regex '^\.TH\s+[^\n]+' 0:title -add-highlighter shared/troff/ regex '^\.SH\s+[^\n]+' 0:header +add-highlighter shared/troff/ regex '^\.NH(\s+\d+(\s+\d+)?)?\s*\n' 0:header +add-highlighter shared/troff/ regex '^\.SH(\s+\d+)?\s*\n' 0:header add-highlighter shared/troff/ regex '^\.IR\s+(\S+)' 1:+i add-highlighter shared/troff/ regex '^\.BR\s+(\S+)' 1:+b add-highlighter shared/troff/ regex '^\.I\s+([^\n]+)' 1:+i