Fix syntax highlighting of git commit messages (#26988)

- Load syntax colors into commit message editors
- Fix name mismatches that were preventing the git commit grammar and
language config from being matched up

Release Notes:

- Fixed git commit messages not being syntax-highlighted
This commit is contained in:
Cole Miller
2025-03-18 18:18:56 +00:00
committed by GitHub
parent cc36cd9768
commit 22b8662275
4 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name = "Git Commit"
grammar = "git_commit"
grammar = "gitcommit"
path_suffixes = [
"TAG_EDITMSG",
"MERGE_MSG",
@@ -4,6 +4,7 @@
(commit) @constant
(item) @markup.link.url
(header) @tag
(comment) @comment
(change kind: "new file" @diff.plus)
(change kind: "deleted" @diff.minus)
@@ -15,4 +16,3 @@
value: (trailer_value) @string)
[":" "=" "->" (scissors)] @punctuation.delimiter
(comment) @comment