1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 10:02:57 +03:00

troff filetype: Fix headings highlighting

This commit is contained in:
Michał Kruszewski 2022-12-30 21:45:17 +01:00
parent 938be7a7b0
commit dddadce7e8

View File

@ -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