Ticket #2126: DOS style INI files syntax

I am attaching a proposed syntax highlighting definition for
- gasp - DOS style INI files.

I'd love to set the

    option

part in

    option = value

to some other color, too, but didn't find the proper syntax
for that.

Karsten

Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
This commit is contained in:
Karsten Hilbert 2010-04-19 10:46:11 +02:00 committed by Yury V. Zaytsev
parent 3b375cc2d3
commit 1243fc6fd7
2 changed files with 23 additions and 0 deletions

View File

@ -175,6 +175,9 @@ include lua.syntax
file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
include idl.syntax
file ..\*\\.([iI][nN][iI])$ INI\sFile
include ini.syntax
file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
include mail.syntax

20
misc/syntax/ini.syntax Normal file
View File

@ -0,0 +1,20 @@
# DOS / Windows INI files
context default
keyword = brightred
keyword $*$ brightgreen
# options
#context .* = cyan
# groups
context [ ] yellow
# lists
context exclusive $*$ $*$ green
# comments:
context # \n brown
context ; \n brown