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