mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 12:56:27 -04:00
18 lines
447 B
Go
18 lines
447 B
Go
//go:build stxIni || stxAll
|
|
|
|
package syntax
|
|
|
|
func init() {
|
|
syntaxMap["ini"] = &lazySyntax{init: func() []byte {
|
|
return []byte(`filetype: ini
|
|
rules:
|
|
- constant.bool.true: "\\btrue\\b"
|
|
- constant.bool.false: "\\bfalse\\b"
|
|
- identifier: "^[[:space:]]*[^=]*="
|
|
- special: "^[[:space:]]*\\[.*\\]$"
|
|
- statement: "[=;]"
|
|
- comment: "(^|[[:space:]])#([^{].*)?$"
|
|
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"`)
|
|
}}
|
|
}
|