diff options
author | Niklas Sombert <niklas@ytvwld.de> | 2020-10-05 20:38:23 +0200 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-10-05 21:09:24 +0200 |
commit | 975487f6303c59236bd779a534f292ec1c340ff2 (patch) | |
tree | 2bbaed6c69e06c0e26ce684545f49680b61ca9b3 /tests | |
parent | c97aa551639373ba048048e35b253108eea78305 (diff) |
Add syntax highlighting test file for INI (#1213)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/syntax-tests/highlighted/INI/test.ini | 18 | ||||
-rw-r--r-- | tests/syntax-tests/source/INI/test.ini | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/INI/test.ini b/tests/syntax-tests/highlighted/INI/test.ini new file mode 100644 index 00000000..05f8cb02 --- /dev/null +++ b/tests/syntax-tests/highlighted/INI/test.ini @@ -0,0 +1,18 @@ +[38;2;248;248;242m[[0m[38;2;166;226;46msection[0m[38;2;248;248;242m][0m +[38;2;249;38;114mkey[0m[38;2;248;248;242m=[0m[38;2;230;219;116mvalue[0m +[38;2;249;38;114mnumeric[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116m42[0m +[38;2;249;38;114mquotes[0m[38;2;248;248;242m=[0m[38;2;248;248;242m"[0m[38;2;230;219;116mthis value is quoted[0m[38;2;248;248;242m"[0m +[38;2;249;38;114mquotes2[0m[38;2;248;248;242m=[0m[38;2;248;248;242m"[0m[38;2;230;219;116mthis is not a comment ;foo[0m[38;2;248;248;242m"[0m +[38;2;249;38;114mdifferent_quotes[0m[38;2;248;248;242m=[0m[38;2;248;248;242m'[0m[38;2;230;219;116mthese are other characters[0m[38;2;248;248;242m'[0m + +[38;2;248;248;242m[[0m[38;2;166;226;46manother one[0m[38;2;248;248;242m][0m +[38;2;249;38;114mfirst[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mvalue[0m +[38;2;117;113;94m;[0m[38;2;117;113;94m comment on own line[0m +[38;2;117;113;94m;[0m[38;2;117;113;94manother one[0m +[38;2;249;38;114msecond[0m[38;2;248;248;242m=[0m[38;2;230;219;116mvalue[0m[38;2;248;248;242m [0m[38;2;117;113;94m; comment at the end of a line[0m +[38;2;249;38;114mthird[0m[38;2;248;248;242m [0m[38;2;248;248;242m=[0m[38;2;248;248;242m [0m[38;2;230;219;116mvalue[0m[38;2;117;113;94m;another one[0m +[38;2;117;113;94m#[0m[38;2;117;113;94m is this a comment? maybe.[0m + +[38;2;248;248;242m[[0m[38;2;166;226;46msection.with.dots[0m[38;2;248;248;242m][0m +[38;2;248;248;242m[[0m[38;2;166;226;46msection\with\backspaces[0m[38;2;248;248;242m][0m +[38;2;248;248;242m[[0m[38;2;166;226;46msection;with;semicola[0m[38;2;248;248;242m][0m diff --git a/tests/syntax-tests/source/INI/test.ini b/tests/syntax-tests/source/INI/test.ini new file mode 100644 index 00000000..e4e8b25c --- /dev/null +++ b/tests/syntax-tests/source/INI/test.ini @@ -0,0 +1,18 @@ +[section] +key=value +numeric = 42 +quotes="this value is quoted" +quotes2="this is not a comment ;foo" +different_quotes='these are other characters' + +[another one] +first = value +; comment on own line +;another one +second=value ; comment at the end of a line +third = value;another one +# is this a comment? maybe. + +[section.with.dots] +[section\with\backspaces] +[section;with;semicola] |