mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-05 16:37:20 -04:00
Rename "syntax" package to "lexers"
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
//go:build stxDiff || stxAll
|
||||
|
||||
package lexers
|
||||
|
||||
func init() {
|
||||
syntaxMap["diff"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: diff
|
||||
rules:
|
||||
- statement: "(^\\+\\+\\+.*)"
|
||||
- statement: "(^---.*)"
|
||||
- type: "(^@@.*)"
|
||||
- constant.number: "(^\\+.*)"
|
||||
- preproc: "(^-.*)"`)
|
||||
}}
|
||||
}
|
||||
Reference in New Issue
Block a user