Skip to content

Commit

Permalink
Add syntax tests for ignored filename suffixes
Browse files Browse the repository at this point in the history
  • Loading branch information
scop committed Jul 5, 2021
1 parent d68b11b commit 68f8c41
Show file tree
Hide file tree
Showing 24 changed files with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.bak (editor etc backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.dpkg-dist (Debian dpkg backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.dpkg-old (Debian dpkg backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/highlighted/Ignored suffixes/test.rs.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.in (build system input) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.in.in (build system input, doubly replaced) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.old (editor etc backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.orig (editor, diff etc backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmnew (Red Hat rpm backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmorig (Red Hat rpm backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmsave (Red Hat rpm backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/highlighted/Ignored suffixes/test.rs~
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo~ (editor backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo~ for unknown foo should not highlight
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.bak (editor etc backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.dpkg-dist (Debian dpkg backup) should highlight same as foo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.dpkg-old (Debian dpkg backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.in (build system input) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.in.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.in.in (build system input, doubly replaced) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.old
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.old (editor etc backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.orig (editor, diff etc backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.rpmnew
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmnew (Red Hat rpm backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.rpmorig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmorig (Red Hat rpm backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs.rpmsave
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo.rpmsave (Red Hat rpm backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.rs~
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo~ (editor backup) should highlight same as foo
1 change: 1 addition & 0 deletions tests/syntax-tests/source/Ignored suffixes/test.unknown~
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// foo~ for unknown foo should not highlight

0 comments on commit 68f8c41

Please sign in to comment.