mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-03 07:37:13 -04:00
Support initial batch of languages
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
//go:build stxMan || stxAll
|
||||
|
||||
package syntax
|
||||
|
||||
func init() {
|
||||
syntaxMap["man"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: man
|
||||
|
||||
detect:
|
||||
filename: "\\.[1-9]x?$"
|
||||
|
||||
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)"`)
|
||||
}}
|
||||
}
|
||||
Reference in New Issue
Block a user