2018-05-18 19:35:45 +02:00
|
|
|
%YAML 1.2
|
|
|
|
---
|
|
|
|
# http://www.sublimetext.com/docs/3/syntax.html
|
|
|
|
name: INI
|
|
|
|
file_extensions:
|
|
|
|
- ini
|
|
|
|
- INI
|
2022-05-10 20:27:48 +02:00
|
|
|
- "inf"
|
|
|
|
- "INF"
|
2018-05-18 19:35:45 +02:00
|
|
|
- reg
|
|
|
|
- REG
|
|
|
|
- lng
|
|
|
|
- cfg
|
|
|
|
- CFG
|
2018-11-19 15:52:53 +01:00
|
|
|
- desktop
|
2018-05-18 19:35:45 +02:00
|
|
|
- url
|
|
|
|
- URL
|
|
|
|
- .editorconfig
|
2022-10-05 09:40:49 +02:00
|
|
|
- .coveragerc
|
|
|
|
- .pylintrc
|
|
|
|
- .gitlint
|
2018-09-19 12:04:09 +02:00
|
|
|
- .hgrc
|
|
|
|
- hgrc
|
2018-05-18 19:35:45 +02:00
|
|
|
scope: source.ini
|
|
|
|
contexts:
|
|
|
|
main:
|
|
|
|
- match: ^\s*(;|#).*$\n?
|
|
|
|
scope: comment.line.semicolon.ini
|
|
|
|
captures:
|
|
|
|
1: punctuation.definition.comment.ini
|
2020-10-05 17:52:40 +02:00
|
|
|
- match: '^\s*(\[)(.*?)(\])\s*(;.*)?$\n?'
|
2018-05-18 19:35:45 +02:00
|
|
|
scope: meta.tag.section.ini
|
|
|
|
captures:
|
|
|
|
1: punctuation.definition.section.ini
|
|
|
|
2: entity.section.ini
|
|
|
|
3: punctuation.definition.section.ini
|
2020-10-05 17:52:40 +02:00
|
|
|
4: comment.definition.section.ini
|
2018-05-18 19:35:45 +02:00
|
|
|
- match: '^(\s*(["'']?)(.+?)(\2)\s*(=))?\s*((["'']?)(.*?)(\7))\s*(;.*)?$\n?'
|
|
|
|
scope: meta.declaration.ini
|
|
|
|
captures:
|
|
|
|
1: meta.property.ini
|
|
|
|
2: punctuation.definition.quote.ini
|
|
|
|
3: keyword.name.ini
|
|
|
|
4: punctuation.definition.quote.ini
|
|
|
|
5: punctuation.definition.equals.ini
|
|
|
|
6: meta.value.ini
|
|
|
|
7: punctuation.definition.quote.ini
|
|
|
|
8: string.name.value.ini
|
|
|
|
9: punctuation.definition.quote.ini
|
|
|
|
10: comment.declarationline.semicolon.ini
|