summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR1tschY <r1tschy@posteo.de>2020-10-24 12:47:28 +0200
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-24 14:09:52 +0200
commitefab00a9de08266bd4d47d4d076e6e1c6c405fab (patch)
tree2027404d435e5558c8525471c5d6531fdfdaf6c6
parent9ab0801ee19a59d9ffa96f8c3ab5804d6e3737b2 (diff)
Add Git Attributes syntax test
-rw-r--r--tests/syntax-tests/highlighted/Git Attributes/example.gitattributes16
-rw-r--r--tests/syntax-tests/source/Git Attributes/example.gitattributes16
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/Git Attributes/example.gitattributes b/tests/syntax-tests/highlighted/Git Attributes/example.gitattributes
new file mode 100644
index 00000000..178bc759
--- /dev/null
+++ b/tests/syntax-tests/highlighted/Git Attributes/example.gitattributes
@@ -0,0 +1,16 @@
+#
+# Comment
+
+[attr]binary -diff -merge -text
+
+* text=auto
+*.c diff=c
+*.cc text diff=cpp
+*.o binary
+*.bat text eol=crlf
+*.lock text -diff
+*.*ignore text
+*.patch -text
+
+.gitattributes linguist-language=gitattributes
+.gitkeep export-ignore
diff --git a/tests/syntax-tests/source/Git Attributes/example.gitattributes b/tests/syntax-tests/source/Git Attributes/example.gitattributes
new file mode 100644
index 00000000..9b8e58b8
--- /dev/null
+++ b/tests/syntax-tests/source/Git Attributes/example.gitattributes
@@ -0,0 +1,16 @@
+#
+# Comment
+
+[attr]binary -diff -merge -text
+
+* text=auto
+*.c diff=c
+*.cc text diff=cpp
+*.o binary
+*.bat text eol=crlf
+*.lock text -diff
+*.*ignore text
+*.patch -text
+
+.gitattributes linguist-language=gitattributes
+.gitkeep export-ignore \ No newline at end of file