mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-08-28 04:46:30 -04:00
Embed "ini" support
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
filetype: ini
|
||||
//go:build stxIni || stxAll
|
||||
|
||||
detect:
|
||||
package syntax
|
||||
|
||||
func init() {
|
||||
syntaxMap["ini"] = &lazySyntax{init: func() []byte {
|
||||
return []byte(`filetype: ini
|
||||
|
||||
detect:
|
||||
filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$"
|
||||
header: "^\\[[A-Za-z]+\\]$"
|
||||
|
||||
@@ -12,3 +18,6 @@ rules:
|
||||
- statement: "[=;]"
|
||||
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
`)
|
||||
}}
|
||||
}
|
||||
Reference in New Issue
Block a user