gbprod / tree-sitter-gitcommit

A tree-sitter grammar for gitcommit messages
Do What The F*ck You Want To Public License
61 stars 7 forks source link

Support typechange status #71

Open ObserverOfTime opened 1 month ago

ObserverOfTime commented 1 month ago

typechange: file type changed (regular file, symbolic link or submodule)

Example

#   typechange: after/ftplugin/svelte.vim

Parse tree

Current

  (generated_comment ; [13, 0] - [13, 39]
    (filepath) ; [13, 2] - [13, 13]
    (annotation)) ; [13, 14] - [13, 39]

Expected

  (generated_comment ; [13, 0] - [13, 39]
    (change ; [13, 2] - [13, 13]
      kind: (typechange)) ; [13, 2] - [13, 13]
    (filepath)) ; [13, 14] - [13, 39]
gbprod commented 3 weeks ago

Interesting ! I'll will try to do someting :)