~reykjalin/fonn_extensions

dd4f48bdbed954239a53f2f069df29a2422d8ef5 — KristoĢfer R 3 months ago 231d957 main
remove git extension
4 files changed, 0 insertions(+), 55 deletions(-)

D git/extension.lua
D git/highlights.scm
D git/libtree-sitter-gitcommit.so
D git/tree-sitter-gitcommit
D git/extension.lua => git/extension.lua +0 -23
@@ 1,23 0,0 @@
function activate()
end

function queries()
  return {
    workspace.path .. "/highlights.scm",
  }
end

function parser()
  return {
    ["path"] = workspace.path .. "/libtree-sitter-gitcommit.so",
    ["function"] = "tree_sitter_gitcommit",
  }
end

function activates_for(file_name)
  return string.match(file_name, "/COMMIT_EDITMSG$") ~= nil
end

function provides_parser_for_file(file_name)
  return string.match(file_name, "/COMMIT_EDITMSG$") ~= nil
end
\ No newline at end of file

D git/highlights.scm => git/highlights.scm +0 -31
@@ 1,31 0,0 @@
; Subject line (the first line of the commit message).
(subject) @markup.heading
(subject (overflow) @invalid)
(prefix (type) @keyword.condition) ; Conventional Commits type.
(prefix (scope) @keyword.modifier) ; Conventional Commits scope.
(prefix ["!"] @keyword) ; Conventional Commits "breaking change" suffix.

; Conventional Commits "breaking change" footer.
(breaking_change (token) @keyword)

; Git trailers ("header: value" combos at the end of the message body).
(trailer (token) @keyword)

; Comments.
(comment) @comment
(generated_comment) @comment
(title) @keyword
(scissor) @markup.line

; Branch names in generated comments.
(branch) @keyword

; File changes in generated comments.
(change) @keyword.modifier
(filepath) @markup.link

; Commit diff.
(diff) @comment ; TODO: Diff syntax should be handled by an injected language.

; Invalid syntax.
(ERROR) @invalid

D git/libtree-sitter-gitcommit.so => git/libtree-sitter-gitcommit.so +0 -0
D git/tree-sitter-gitcommit => git/tree-sitter-gitcommit +0 -1
@@ 1,1 0,0 @@
Subproject commit 6856a5fd0ffeff17d83325a8ce4e57811010eff1