Rename "syntax" package to "lexers"

This commit is contained in:
2025-06-15 16:15:38 -04:00
parent 17be28e6b2
commit 21f55dd55e
44 changed files with 56 additions and 54 deletions
+15
View File
@@ -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: "(^-.*)"`)
}}
}