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
+16
View File
@@ -0,0 +1,16 @@
//go:build stxIni || stxAll
package lexers
func init() {
syntaxMap["ini"] = &lazySyntax{init: func() []byte {
return []byte(`filetype: ini
rules:
- constant.bool: "\\b(true|false)\\b"
- identifier: "^[[:space:]]*[^=]*="
- special: "^[[:space:]]*\\[.*\\]$"
- statement: "[=;]"
- comment: "(^|[[:space:]])#([^{].*)?$"
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"`)
}}
}