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
- Host: GitHub
- URL: https://github.com/tree-sitter-grammars/tree-sitter-gitattributes
- Owner: tree-sitter-grammars
- License: mit
- Created: 2022-09-08T11:09:15.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-06-01T04:08:12.000Z (about 1 year ago)
- Last Synced: 2025-06-01T08:05:17.117Z (about 1 year ago)
- Topics: gitattributes, parser, tree-sitter
- Language: JavaScript
- Homepage:
- Size: 165 KB
- Stars: 16
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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