diff --git a/autotests/folding/test.ini.fold b/autotests/folding/test.ini.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/test.ini.fold @@ -0,0 +1,18 @@ +; comment +; comment with ### alerts +# alternative comments + +[Empty section][Empty section] + +[Section 2][Section 2] +Key1=String Value +Key2=42 +Key3=3.14 +Key\SubKey=True + +[Section 3][Section 3] +; = in values are fine +; inline comments are not supported, ;/# are part of the value +key4 = foo = True; bar = False +key4b = abcd#1234! +key5/subkey = "foo\nbar" diff --git a/autotests/html/test.ini.html b/autotests/html/test.ini.html new file mode 100644 --- /dev/null +++ b/autotests/html/test.ini.html @@ -0,0 +1,25 @@ + + + +test.ini + +
+; comment
+; comment with ### alerts
+# alternative comments
+
+[Empty section]
+
+[Section 2]
+Key1=String Value
+Key2=42
+Key3=3.14
+Key\SubKey=True
+
+[Section 3]
+; = in values are fine
+; inline comments are not supported, ;/# are part of the value
+key4 = foo = True; bar = False
+key4b = abcd#1234!
+key5/subkey = "foo\nbar"
+
diff --git a/autotests/input/test.ini b/autotests/input/test.ini new file mode 100644 --- /dev/null +++ b/autotests/input/test.ini @@ -0,0 +1,18 @@ +; comment +; comment with ### alerts +# alternative comments + +[Empty section] + +[Section 2] +Key1=String Value +Key2=42 +Key3=3.14 +Key\SubKey=True + +[Section 3] +; = in values are fine +; inline comments are not supported, ;/# are part of the value +key4 = foo = True; bar = False +key4b = abcd#1234! +key5/subkey = "foo\nbar" diff --git a/autotests/reference/test.ini.ref b/autotests/reference/test.ini.ref new file mode 100644 --- /dev/null +++ b/autotests/reference/test.ini.ref @@ -0,0 +1,18 @@ +; comment
+; comment with ### alerts
+# alternative comments
+
+
[Empty section]

+
+
[Section 2]

+Key1=String Value
+Key2=42
+Key3=3.14
+Key\SubKey=True
+
+
[Section 3]

+; = in values are fine
+; inline comments are not supported, ;/# are part of the value
+key4 = foo = True; bar = False
+key4b = abcd#1234!
+key5/subkey = "foo\nbar"
diff --git a/data/syntax/ini.xml b/data/syntax/ini.xml --- a/data/syntax/ini.xml +++ b/data/syntax/ini.xml @@ -1,6 +1,6 @@ - + @@ -44,8 +44,6 @@ - -