1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-21 18:09:09 +03:00

Merge remote-tracking branch 'm-kru/troff_comment'

This commit is contained in:
Maxime Coste 2021-03-01 08:26:02 +11:00
commit a0f567f5e6

View File

@ -23,11 +23,15 @@ provide-module troff %{
# ‾‾‾‾‾‾‾‾‾‾‾‾
add-highlighter shared/troff group
add-highlighter shared/troff/ regex '(^\.)?\\".*?\n' 0:comment
add-highlighter shared/troff/ regex '\\f[A-Z]' 0:attribute
add-highlighter shared/troff/ regex '\\fB(.+?)\\f[A-Z]' 1:+b
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 '^\.IR\s+(\S+)' 1:+i