mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
17 lines
409 B
Go
17 lines
409 B
Go
//go:build stxIni || stxAll
|
|
|
|
package syntax
|
|
|
|
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: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"`)
|
|
}}
|
|
}
|