mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
17 lines
370 B
Go
17 lines
370 B
Go
//go:build stxMan || stxAll
|
|
|
|
package syntax
|
|
|
|
func init() {
|
|
syntaxMap["man"] = &lazySyntax{init: func() []byte {
|
|
return []byte(`filetype: man
|
|
rules:
|
|
- green: "\\.(S|T)H.*$"
|
|
- brightgreen: "\\.(S|T)H|\\.TP"
|
|
- brightred: "\\.(BR?|I[PR]?).*$"
|
|
- brightblue: "\\.(BR?|I[PR]?|PP)"
|
|
- brightwhite: "\\\\f[BIPR]"
|
|
- yellow: "\\.(br|DS|RS|RE|PD)"`)
|
|
}}
|
|
}
|