mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
16 lines
304 B
Go
16 lines
304 B
Go
//go:build stxDiff || stxAll
|
|
|
|
package syntax
|
|
|
|
func init() {
|
|
syntaxMap["diff"] = &lazySyntax{init: func() []byte {
|
|
return []byte(`filetype: diff
|
|
rules:
|
|
- statement: "(^\\+\\+\\+.*)"
|
|
- statement: "(^---.*)"
|
|
- type: "(^@@.*)"
|
|
- constant.number: "(^\\+.*)"
|
|
- preproc: "(^-.*)"`)
|
|
}}
|
|
}
|