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

This commit is contained in:
Maxime Coste 2023-12-02 10:08:16 +11:00
commit 5b1da70adc

View File

@ -30,7 +30,7 @@ add-highlighter shared/troff/text/ regex '\\f[A-Z]' 0:attribute
add-highlighter shared/troff/text/ regex '\\fB(.+?)\\f[A-Z]' 1:+b add-highlighter shared/troff/text/ regex '\\fB(.+?)\\f[A-Z]' 1:+b
add-highlighter shared/troff/text/ regex '\\fI(.+?)\\f[A-Z]' 1:+i add-highlighter shared/troff/text/ regex '\\fI(.+?)\\f[A-Z]' 1:+i
add-highlighter shared/troff/text/ regex '^\.[a-zA-Z]{1,2}\b' 0:meta add-highlighter shared/troff/text/ regex '^\.[a-zA-Z]{1,2}\b' 0:meta
add-highlighter shared/troff/text/ regex '^\.(PSPIC|PDFPIC)\b' 0:meta add-highlighter shared/troff/text/ regex '^\.(PSPIC|PDFPIC|pdfhref)\b' 0:meta
add-highlighter shared/troff/text/ regex '^\.\.$' 0:meta add-highlighter shared/troff/text/ regex '^\.\.$' 0:meta
add-highlighter shared/troff/text/ regex '^\.TH\s+[^\n]+' 0:title add-highlighter shared/troff/text/ regex '^\.TH\s+[^\n]+' 0:title
add-highlighter shared/troff/text/ regex '^\.NH(\s+\d+(\s+\d+)?)?\s*\n' 0:header add-highlighter shared/troff/text/ regex '^\.NH(\s+\d+(\s+\d+)?)?\s*\n' 0:header
@ -39,6 +39,7 @@ add-highlighter shared/troff/text/ regex '^\.IR\s+(\S+)' 1:+i
add-highlighter shared/troff/text/ regex '^\.BR\s+(\S+)' 1:+b add-highlighter shared/troff/text/ regex '^\.BR\s+(\S+)' 1:+b
add-highlighter shared/troff/text/ regex '^\.I\s+([^\n]+)' 1:+i add-highlighter shared/troff/text/ regex '^\.I\s+([^\n]+)' 1:+i
add-highlighter shared/troff/text/ regex '^\.B\s+([^\n]+)' 1:+b add-highlighter shared/troff/text/ regex '^\.B\s+([^\n]+)' 1:+b
add-highlighter shared/troff/text/ regex '(ftp:|http:|https:|www\.)+[^\s]+[\w]' 0:link
add-highlighter shared/troff/pic region '^\.PS\b' '^\.PE\b' group add-highlighter shared/troff/pic region '^\.PS\b' '^\.PE\b' group
add-highlighter shared/troff/pic/ regex '^(\.PS\b|\.PE\b)' 1:meta add-highlighter shared/troff/pic/ regex '^(\.PS\b|\.PE\b)' 1:meta