summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2021-07-06 00:05:09 +0300
committerDavid Peter <sharkdp@users.noreply.github.com>2021-07-09 06:34:11 +0200
commitddb39ef2f603ff00301ae3b6241bacfa9d594e15 (patch)
tree6941fcbb2f239999f1d963243f5df2411f6462fd /tests
parent355e62efe9321b4e64520230fe792dc0f80a6041 (diff)
Add syntax tests for ignored filename suffixes
Diffstat (limited to 'tests')
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.rs~1
-rw-r--r--tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.bak1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.in1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.in.in1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.old1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.orig1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.orig~1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.rs~1
-rw-r--r--tests/syntax-tests/source/Ignored suffixes/test.unknown~1
26 files changed, 26 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak
new file mode 100644
index 00000000..d21808b9
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak
@@ -0,0 +1 @@
+// foo.bak (editor etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist
new file mode 100644
index 00000000..02ff14d8
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist
@@ -0,0 +1 @@
+// foo.dpkg-dist (Debian dpkg backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old
new file mode 100644
index 00000000..658035da
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old
@@ -0,0 +1 @@
+// foo.dpkg-old (Debian dpkg backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in
new file mode 100644
index 00000000..eb98720d
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in
@@ -0,0 +1 @@
+// foo.in (build system input) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in
new file mode 100644
index 00000000..1b995b2e
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in
@@ -0,0 +1 @@
+// foo.in.in (build system input, doubly replaced) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old
new file mode 100644
index 00000000..464717d5
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old
@@ -0,0 +1 @@
+// foo.old (editor etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig
new file mode 100644
index 00000000..28185992
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig
@@ -0,0 +1 @@
+// foo.orig (editor, diff etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~
new file mode 100644
index 00000000..96b7c43a
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~
@@ -0,0 +1 @@
+// foo.orig~ (backup of an editor, diff etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew
new file mode 100644
index 00000000..b32fc210
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew
@@ -0,0 +1 @@
+// foo.rpmnew (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig
new file mode 100644
index 00000000..6484b67f
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig
@@ -0,0 +1 @@
+// foo.rpmorig (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave
new file mode 100644
index 00000000..e2e1522e
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave
@@ -0,0 +1 @@
+// foo.rpmsave (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.rs~ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs~
new file mode 100644
index 00000000..4888296e
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.rs~
@@ -0,0 +1 @@
+// foo~ (editor backup) should highlight same as foo
diff --git a/tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~ b/tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~
new file mode 100644
index 00000000..22d702ec
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~
@@ -0,0 +1 @@
+// foo~ for unknown foo should not highlight
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.bak b/tests/syntax-tests/source/Ignored suffixes/test.rs.bak
new file mode 100644
index 00000000..49401de5
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.bak
@@ -0,0 +1 @@
+// foo.bak (editor etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist b/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist
new file mode 100644
index 00000000..38c86585
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist
@@ -0,0 +1 @@
+// foo.dpkg-dist (Debian dpkg backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old b/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old
new file mode 100644
index 00000000..b30dadb3
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old
@@ -0,0 +1 @@
+// foo.dpkg-old (Debian dpkg backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.in b/tests/syntax-tests/source/Ignored suffixes/test.rs.in
new file mode 100644
index 00000000..cf272036
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.in
@@ -0,0 +1 @@
+// foo.in (build system input) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.in.in b/tests/syntax-tests/source/Ignored suffixes/test.rs.in.in
new file mode 100644
index 00000000..2b09eb86
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.in.in
@@ -0,0 +1 @@
+// foo.in.in (build system input, doubly replaced) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.old b/tests/syntax-tests/source/Ignored suffixes/test.rs.old
new file mode 100644
index 00000000..12779afc
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.old
@@ -0,0 +1 @@
+// foo.old (editor etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.orig b/tests/syntax-tests/source/Ignored suffixes/test.rs.orig
new file mode 100644
index 00000000..2bfb72f8
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.orig
@@ -0,0 +1 @@
+// foo.orig (editor, diff etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.orig~ b/tests/syntax-tests/source/Ignored suffixes/test.rs.orig~
new file mode 100644
index 00000000..12829bb1
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.orig~
@@ -0,0 +1 @@
+// foo.orig~ (backup of an editor, diff etc backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew
new file mode 100644
index 00000000..1cbe42ee
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew
@@ -0,0 +1 @@
+// foo.rpmnew (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig
new file mode 100644
index 00000000..8a6e16f4
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig
@@ -0,0 +1 @@
+// foo.rpmorig (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave
new file mode 100644
index 00000000..ec72ea74
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave
@@ -0,0 +1 @@
+// foo.rpmsave (Red Hat rpm backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.rs~ b/tests/syntax-tests/source/Ignored suffixes/test.rs~
new file mode 100644
index 00000000..e1a29651
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.rs~
@@ -0,0 +1 @@
+// foo~ (editor backup) should highlight same as foo
diff --git a/tests/syntax-tests/source/Ignored suffixes/test.unknown~ b/tests/syntax-tests/source/Ignored suffixes/test.unknown~
new file mode 100644
index 00000000..7e0bf806
--- /dev/null
+++ b/tests/syntax-tests/source/Ignored suffixes/test.unknown~
@@ -0,0 +1 @@
+// foo~ for unknown foo should not highlight