Crates.io | tree-sitter-gitcommit |
lib.rs | tree-sitter-gitcommit |
version | 0.3.3 |
source | src |
created_at | 2023-04-11 16:36:48.274008 |
updated_at | 2023-05-30 09:31:49.10646 |
description | gitcommit grammar for the tree-sitter parsing library |
homepage | |
repository | https://github.com/tree-sitter/tree-sitter-gitcommit |
max_upload_size | |
id | 836170 |
size | 2,429,541 |
gitcommit
grammar for tree-sitter.
We aim to support all the locales supported by git. The currently supported locales are listed below:
en
: Englishbg
: Bulgarianca
: Catalande
: Germanel
: Greekes
: Spanishfr
: Frenchid
: Indonesian (Bahasa)it
: Italianko
: Koreanpl
: Polishpt_PT
: Portugal Portugeseru
: Russiansv
: Swedishtr
: Turkishvi
: Vietnamesezh_CN
: Chinese (Simplified)zh_TW
: Taiwanese MandarinThis parser only parses git commit subject, message and generated comments, it doesn't handle diff and git rebase information that could be included.
To handle that, you must have diff
and git_rebase
tree-sitter grammars installed and add injection queries.
If you're using Neovim and nvim-treesitter
, you just have to be sure that diff
and git_rebase
are installed (using TSInstall diff git_rebase
for example).