From a4e853c4fa20016a4be5a705f7d637eb90aa012d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Gonz=C3=A1lez=20Prieto?= Date: Tue, 17 Mar 2026 22:59:21 +0100 Subject: [PATCH] Map ignore files to Git Ignore syntax This would catch any dotfiles that end in "ignore", but not `.ignore` Set as a lower priority rule (90 vs the usual 50) because it's a blanket assignation. If there are conflict with other, more specific rules, those will take precedence. --- CHANGELOG.md | 1 + src/syntax_mapping/builtins/common/90-ignore-files.toml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 src/syntax_mapping/builtins/common/90-ignore-files.toml diff --git a/CHANGELOG.md b/CHANGELOG.md index 23e4a29d..7de41716 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ - Add syntax highlighting support for COBOL, see #3584 (@adukhan99) - Fixed manpage syntax so that ANSI escape codes don't get incorrectly highlighted and thus broken, see #3586 (@BlueElectivire) - Map several Google Cloud CLI config files to their appropriate syntax #3635 (@victor-gp) +- Map all ignore dotfiles to Git Ignore syntax #3636 (@victor-gp) ## Themes diff --git a/src/syntax_mapping/builtins/common/90-ignore-files.toml b/src/syntax_mapping/builtins/common/90-ignore-files.toml new file mode 100644 index 00000000..90984aff --- /dev/null +++ b/src/syntax_mapping/builtins/common/90-ignore-files.toml @@ -0,0 +1,2 @@ +[mappings] +"Git Ignore" = [".?*ignore"]