mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-15 21:37:09 +09:00
Add converted syntax files
This commit is contained in:
14
runtime/syntax/ini.yaml
Normal file
14
runtime/syntax/ini.yaml
Normal file
@@ -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