From 479c3b55847eae060b69e6f0eda0bd95d93a7fa0 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sat, 5 Jul 2025 16:23:53 +0200 Subject: [PATCH] Add highlighting for git notes editmsg (#13885) --- book/src/generated/lang-support.md | 1 + languages.toml | 10 ++++++++++ runtime/queries/git-notes/highlights.scm | 1 + 3 files changed, 12 insertions(+) create mode 100644 runtime/queries/git-notes/highlights.scm diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 0df25dc90..71b1dc0d8 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -78,6 +78,7 @@ | git-commit | ✓ | ✓ | | | | git-config | ✓ | ✓ | | | | git-ignore | ✓ | | | | +| git-notes | ✓ | | | | | git-rebase | ✓ | | | | | gjs | ✓ | ✓ | ✓ | `typescript-language-server`, `vscode-eslint-language-server`, `ember-language-server` | | gleam | ✓ | ✓ | | `gleam` | diff --git a/languages.toml b/languages.toml index 55584791b..8f8b9ac42 100644 --- a/languages.toml +++ b/languages.toml @@ -1868,6 +1868,16 @@ grammar = "gitcommit" name = "gitcommit" source = { git = "https://github.com/gbprod/tree-sitter-gitcommit", rev = "a716678c0f00645fed1e6f1d0eb221481dbd6f6d" } +[[language]] +name = "git-notes" +scope = "git.notesmsg" +file-types = [{ glob = "NOTES_EDITMSG" }] +comment-token = "#" +indent = { tab-width = 4, unit = " " } +rulers = [73] +text-width = 72 +grammar = "gitcommit" + [[language]] name = "diff" scope = "source.diff" diff --git a/runtime/queries/git-notes/highlights.scm b/runtime/queries/git-notes/highlights.scm new file mode 100644 index 000000000..4bb7d675d --- /dev/null +++ b/runtime/queries/git-notes/highlights.scm @@ -0,0 +1 @@ +(comment) @comment