-
Notifications
You must be signed in to change notification settings - Fork 16
/
ini.format.txt
41 lines (27 loc) · 2.64 KB
/
ini.format.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
INI
ALTERNATIVES ==> #See serialization formats summary
VERSION ==> #No spec
EXTENSION ==> #.ini
#Sometimes .cfg .conf, .txt, .text or .in
NOTATION ==> ##This means implementations might not implement this
/=+===============================+=\
/ : : \
)==: SYNTAX :==(
\ :_______________________________: /
\=+===============================+=/
ENCODING ==> ##UTF-8
CASE ==> ##Case-insensitive
;COMMENT #At beginning of line
##or at end
#COMMENT ##
[VAR] #Is { VAR: { VAR2: VAL } }
VAR2=VAL #Whitespace around = ignored
#VAL is untyped
##but some implementations do type guessing
##VAR, VAR2=VAL and VAL are optional
##VAR can be VARR, for nesting
##VAR|VAR2|VAL can use backslash sequences, trailing newlines and quoting
##Identation ignored
##When repeating VAR2, some implementations treat it as ARR