mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-24 03:56:32 +03:00
Fix man.kak add-highlighter commands
This commit is contained in:
parent
a676b26664
commit
b06ad06507
@ -4,15 +4,15 @@ declare-option -docstring "name of the client in which documentation is to be di
|
||||
declare-option -hidden str manpage
|
||||
|
||||
hook -group man-highlight global WinSetOption filetype=man %{
|
||||
add-highlighter window group man-highlight
|
||||
add-highlighter window/man-highlight group
|
||||
# Sections
|
||||
add-highlighter window/man-highlight regex ^\S.*?$ 0:blue
|
||||
add-highlighter window/man-highlight/ regex ^\S.*?$ 0:blue
|
||||
# Subsections
|
||||
add-highlighter window/man-highlight regex '^ {3}\S.*?$' 0:default+b
|
||||
add-highlighter window/man-highlight/ regex '^ {3}\S.*?$' 0:default+b
|
||||
# Command line options
|
||||
add-highlighter window/man-highlight regex '^ {7}-[^\s,]+(,\s+-[^\s,]+)*' 0:yellow
|
||||
add-highlighter window/man-highlight/ regex '^ {7}-[^\s,]+(,\s+-[^\s,]+)*' 0:yellow
|
||||
# References to other manpages
|
||||
add-highlighter window/man-highlight regex [-a-zA-Z0-9_.]+\([a-z0-9]+\) 0:green
|
||||
add-highlighter window/man-highlight/ regex [-a-zA-Z0-9_.]+\([a-z0-9]+\) 0:green
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=man %{
|
||||
|
Loading…
Reference in New Issue
Block a user