mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-03 23:57:13 -04:00
Many optimizations and new syntax files
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
filetype: ini
|
||||
|
||||
detect:
|
||||
filename: "\\.(ini|desktop|lfl|override)$|(mimeapps\\.list|pinforc|setup\\.cfg)$|weechat/.+\\.conf$"
|
||||
header: "^\\[[A-Za-z]+\\]$"
|
||||
|
||||
rules:
|
||||
- constant.bool.true: "\\btrue\\b"
|
||||
- constant.bool.false: "\\bfalse\\b"
|
||||
- identifier: "^[[:space:]]*[^=]*="
|
||||
- special: "^[[:space:]]*\\[.*\\]$"
|
||||
- statement: "[=;]"
|
||||
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
Reference in New Issue
Block a user