From ddb39ef2f603ff00301ae3b6241bacfa9d594e15 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 6 Jul 2021 00:05:09 +0300 Subject: [PATCH] Add syntax tests for ignored filename suffixes --- tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak | 1 + .../syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~ | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.rs~ | 1 + tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~ | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.bak | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.in | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.in.in | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.old | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.orig | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.orig~ | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave | 1 + tests/syntax-tests/source/Ignored suffixes/test.rs~ | 1 + tests/syntax-tests/source/Ignored suffixes/test.unknown~ | 1 + 26 files changed, 26 insertions(+) create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.bak create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-dist create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.dpkg-old create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in.in create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.old create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.orig~ create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmnew create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmorig create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs.rpmsave create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.rs~ create mode 100644 tests/syntax-tests/highlighted/Ignored suffixes/test.unknown~ create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.bak create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-dist create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.dpkg-old create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.in create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.in.in create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.old create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.orig create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.orig~ create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.rs~ create mode 100644 tests/syntax-tests/source/Ignored suffixes/test.unknown~ 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