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,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: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"`)
|
||||
}}
|
||||
}
|
||||
Reference in New Issue
Block a user