Mercurial > forks > helix
changeset 6695:616d5982bd12
Debian control file syntax highlighting (#13245)
File format described at
https://www.debian.org/doc/debian-policy/ch-controlfields.html
Co-authored-by: Wesley Hershberger <[email protected]>
author | Wesley Hershberger <mggmugginsmc@gmail.com> |
---|---|
date | Sun, 06 Apr 2025 12:05:43 -0500 |
parents | a6eef829a2fe |
children | 4a7e3f7726ee |
files | book/src/generated/lang-support.md languages.toml runtime/queries/debian/highlights.scm |
diffstat | 3 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/book/src/generated/lang-support.md Thu Apr 03 14:37:20 2025 -0700 +++ b/book/src/generated/lang-support.md Sun Apr 06 12:05:43 2025 -0500 @@ -36,6 +36,7 @@ | d | ✓ | ✓ | ✓ | `serve-d` | | dart | ✓ | ✓ | ✓ | `dart` | | dbml | ✓ | | | | +| debian | ✓ | | | | | devicetree | ✓ | | | | | dhall | ✓ | ✓ | | `dhall-lsp-server` | | diff | ✓ | | | |
--- a/languages.toml Thu Apr 03 14:37:20 2025 -0700 +++ b/languages.toml Sun Apr 06 12:05:43 2025 -0500 @@ -4261,3 +4261,18 @@ [[grammar]] name = "werk" source = { git = "https://github.com/little-bonsai/tree-sitter-werk", rev = "92b0f7fe98465c4c435794a58e961306193d1c1e" } + +[[language]] +name = "debian" +scope = "text.debian" +file-types = [ + "dsc", + "changes", + { glob = "debian/**/control" }, + { glob = "etc/apt/sources.list.d/*.sources"} +] +comment-tokens = "#" + +[[grammar]] +name = "debian" +source = { git = "https://gitlab.com/MggMuggins/tree-sitter-debian", rev = "9b3f4b78c45aab8a2f25a5f9e7bbc00995bc3dde" }