From 0bfeb5484ec6323df6504cd0548dc9c1dc636aef Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Wed, 28 Sep 2022 17:48:09 +0300 Subject: test(gitattributes): add tests for highlights --- .../highlights/gitattributes/test.gitattributes | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 tests/query/highlights/gitattributes/test.gitattributes (limited to 'tests') diff --git a/tests/query/highlights/gitattributes/test.gitattributes b/tests/query/highlights/gitattributes/test.gitattributes new file mode 100644 index 000000000..5b2e12005 --- /dev/null +++ b/tests/query/highlights/gitattributes/test.gitattributes @@ -0,0 +1,37 @@ +[attr]nodiff -diff -merge +# <- preproc +# ^^^^^^ property +# ^ operator +# ^^^^ variable.builtin +# ^ operator +# ^^^^^ variable.builtin + +vendor/** linguist-vendored=true +# ^ punctuation.delimiter +# ^^ punctuation.special +# ^^^^^^^^^^^^^^^^^ parameter +# ^ operator +# ^^^^ boolean + + [^._]-[[:lower:]] !something +# ^ punctuation.bracket +# ^ operator +# ^^ string.special +# ^ punctuation.bracket +# ^ punctuation.bracket +# ^^^^^^^^^ constant +# ^ punctuation.bracket +# ^ operator +# ^^^^^^^^^^ parameter + +"_\u4E00\t\56txt" encoding=UTF-16 +# <- character.special +# ^^^^^^ string.escape +# ^^ string.escape +# ^^^ string.escape +# ^ character.special +# ^^^^^^^^ variable.builtin +# ^ operator +# ^^^^^^ string + +# vim:ft=gitattributes: -- cgit v1.2.3-70-g09d2