gbprod / tree-sitter-gitcommit

A tree-sitter grammar for gitcommit messages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tree-sitter-gitcommit

Build/test

gitcommit grammar for tree-sitter.

Features

Supported locales

We aim to support all the locales supported by git. The currently supported locales are listed below:

  • en: English
  • bg: Bulgarian
  • ca: Catalan
  • de: German
  • el: Greek
  • es: Spanish
  • fr: French
  • id: Indonesian (Bahasa)
  • it: Italian
  • ko: Korean
  • pl: Polish
  • pt_PT: Portugal Portugese
  • ru: Russian
  • sv: Swedish
  • tr: Turkish
  • vi: Vietnamese
  • zh_CN: Chinese (Simplified)
  • zh_TW: Taiwanese Mandarin

Note about injected languages

This 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).

Credits

About

A tree-sitter grammar for gitcommit messages

License:Do What The F*ck You Want To Public License


Languages

Language:C 98.8%Language:JavaScript 1.0%Language:Rust 0.1%Language:C++ 0.0%Language:Scheme 0.0%Language:Python 0.0%