test(gitattributes): add tests for highlights

This commit is contained in:
ObserverOfTime 2022-09-28 17:48:09 +03:00 committed by Stephan Seitz
parent 7135163fd4
commit 0bfeb5484e
3 changed files with 38 additions and 5 deletions

View file

@ -1217,11 +1217,8 @@ list.gitattributes = {
install_info = {
url = "https://github.com/ObserverOfTime/tree-sitter-gitattributes",
files = { "src/parser.c" },
branch = "master",
requires_generate_from_grammar = false,
},
maintainers = { "@ObserverOfTime" },
experimental = true,
}
list.blueprint = {

View file

@ -50,5 +50,4 @@
(ERROR) @error
(comment) @comment
(comment) @spell
(comment) @comment @spell

View file

@ -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: