An open API service indexing awesome lists of open source software.

https://github.com/tree-sitter-grammars/tree-sitter-gitattributes

gitattributes grammar for tree-sitter
https://github.com/tree-sitter-grammars/tree-sitter-gitattributes

gitattributes parser tree-sitter

Last synced: 11 months ago
JSON representation

gitattributes grammar for tree-sitter

Awesome Lists containing this project

README

          

# tree-sitter-gitattributes

[![CI][ci]](https://github.com/tree-sitter-grammars/tree-sitter-gitattributes/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-gitattributes)
[![crates][crates]](https://crates.io/crates/tree-sitter-gitattributes)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-gitattributes/)

A tree-sitter parser for `.gitattributes` files.

## References

* [gitattributes Documentation](https://git-scm.com/docs/gitattributes)
* [gitignore Documentation (Pattern Format)](https://git-scm.com/docs/gitignore#_pattern_format)
* [git source code (`attr.c`)](https://github.com/git/git/blob/master/attr.c)
* [git source code (`wildmatch.c`)](https://github.com/git/git/blob/master/wildmatch.c)
* [ANSI-C Quoting](https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html)
* [Character Classes and Bracket Expressions](https://www.gnu.org/software/grep/manual/html_node/Character-Classes-and-Bracket-Expressions.html)

## Editors

- [x] Neovim
- [ ] Helix _(has alternative)_
- [x] Emacs
- [ ] Zed

[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-gitattributes/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-gitattributes?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-gitattributes?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-gitattributes?logo=pypi&logoColor=ffd242