add C-style comment support

This commit is contained in:
2020-11-03 11:20:24 +03:00
parent f083dcd3d8
commit 69be8312f8
27 changed files with 56 additions and 45 deletions

View File

@ -10,7 +10,7 @@ DefKey3=NoSpaces!
Key2 = 2
Key3 = 3
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -8,7 +8,7 @@ DefKey3=NoSpaces!
[SimpleSection] # Comment For Section
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
[SectionWithIndent]
Key=Value

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = onlyone
[SectionWithIndent]

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -9,7 +9,7 @@ DefKey3=NoSpaces!
Key1 = 1
Key2 = 2
[MultipleKeySection]
[MultipleKeySection] // C style comment
Key = 1
Key = 2
Key = 3

View File

@ -1,10 +1,11 @@
#!/bin/bash
DEF='\e[0m'; BLD='\e[1m'; RED='\e[31m'; GRN='\e[32m'; WHT='\e[97m'
ScriptFullname=$(readlink -e "$0")
ScriptName=$(echo "$ScriptFullname" | awk -F '/' '{print $NF;}')
ScriptDir=$(dirname "$ScriptFullname")
TestDir="$ScriptDir/tests"
TestDir="$ScriptDir/data"
Multini=$(readlink -e "$1")
if [[ -z "$Multini" ]]; then