1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-20 16:33:20 +00:00
Commit Graph

62 Commits

Author SHA1 Message Date
Lucas Trzesniewski c64b6761fe Add .NET slnx extension
This is the new XML-based format for solution files.
2026-04-07 23:25:40 +02:00
Keith Hall 3767f15c2a improvements from PR review
fix documentation about syntax mappings
2026-03-20 23:34:38 +02:00
Keith Hall c6e661d80b cargo fmt 2026-03-18 22:25:07 +02:00
Keith Hall 031ba0953a Merge branch 'master' into patch-2 2026-03-18 22:17:18 +02:00
copilot-swe-agent[bot] 2a29802dd5 Refactor: string-or-struct matcher syntax, Case enum, remove case_sensitive_mappings table
Co-authored-by: keith-hall <11882719+keith-hall@users.noreply.github.com>
2026-03-18 22:16:50 +02:00
Víctor González Prieto a4e853c4fa 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.
2026-03-18 21:58:23 +02:00
Keith Hall 22c38b6fcb Merge remote-tracking branch 'origin/master' into patch-2 2026-03-18 05:19:21 +02:00
Víctor González Prieto a1917275cd Add syntax mappings for GCloud CLI config files
> .boto => INI

I was uninstalling gcloud-cli and the docs said to review the contents
of ~/.boto [^1].

`bat` doesn't recognize it but it's just an INI-like file to configure
gsutil [^2].

I took the chance to add a few more mappings for other GCloud config
files without extension...

> .gcloudignore => Git Ignore

This one's self-explanatory, but it's documented in [^3].

Makes me wonder if we could just do a blanket `Git Ignore = ".?*ignore"`
for every kind of ignore file. For instance, `bat` doesn't catch
.dockerignore either.

> **/gcloud/configurations/config_* => INI

These are configuration files for each different profile you have
configured for the gcloud-cli [^4].

They're named like "config_default" or "config_<name>", without a
file extension, but they are also INI syntax [^5][^6].

[^1]: https://docs.cloud.google.com/sdk/docs/uninstall-cloud-sdk
[^2]: https://docs.cloud.google.com/storage/docs/boto-gsutil
[^3]: https://docs.cloud.google.com/sdk/gcloud/reference/topic/gcloudignore
[^4]: https://docs.cloud.google.com/sdk/docs/configurations
[^5]: https://stackoverflow.com/questions/74290882/return-active-gcp-project-name-programatically-for-both-local-dev-and-deployed-c/7^4292151#74292151
[^6]: https://stackoverflow.com/questions/49212350/where-does-gcloud-store-its-defaults/49256835#49256835
2026-03-17 20:51:23 +01:00
Keith Hall 56fe0fa226 Add case-sensitive glob support to syntax mapping
to allow us to map `BUILD` case sensitively to Python for Skylark
2026-03-14 09:18:56 +02:00
Michael Vorburger ba97230b98 feat: Map BUILD to Python (Starlark) for Bazel (fixes #3575)
See #3575.
2026-02-01 13:34:33 +01:00
Cedric Staniewski a6e0057c12 Add syntax mapping for podman's artifact quadlet files 2025-11-30 14:18:12 +02:00
cyqsimon f5a934c213 Update quadlet syntax mapping to include *.{build,pod} files 2025-11-13 13:44:24 +08:00
Keith Hall 839bfded39 Map /var/log/dmesg to Syslog syntax 2025-09-27 22:48:13 +03:00
Ritoban Dutta e879f532a7 Mapping .kshrc to bash for syntax highlighting #3361 (#3364)
* Add syntax highlighting support for .kshrc files and update mapping in KornShell syntax #3361
2025-09-23 16:56:52 +00:00
Ferenc Géczi 20caaf26c8 Add syntax mapping for flatpakrepo
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2025-07-31 00:00:00 +00:00
Ferenc Géczi 3574118e17 Add syntax mapping for flatpakref
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2025-07-31 00:00:00 +00:00
cyqsimon e0165a2d6a Add syntax mapping for certbot certificate configuration 2025-07-08 23:33:41 +03:00
krikera 9d3db318e3 Add syntax mapping for Mill build tool files to use Scala syntax 2025-06-01 22:03:54 +05:30
cyqsimon a4ffe2fdbf Update quadlet syntax mapping rules to cover quadlets in subdirectories 2025-05-20 15:22:55 +08:00
Adam Gaskins 51491c3c08 Fix syntax highlighting for bash/zsh 2025-04-07 17:43:56 -04:00
Keith Hall d31bc4347a Map various .NET file extensions to XML syntax 2025-02-23 20:20:52 +02:00
Keith Hall 2843a2c0e8 Add mapping for ndjson file extension to JSON syntax 2025-02-15 08:46:22 +02:00
odilf 61d42ee87b Add syntax mapping for nixs flake.lock 2025-02-02 21:10:03 +02:00
cyqsimon 94f49fd99b Add syntax mapping for paru configuration 2025-01-24 23:02:57 +02:00
Leo f87157d009 Update syntax mapping for apache conf 2024-12-01 11:15:17 +08:00
Keith Hall dbe352d8b8 Merge branch 'master' into citation-mapping 2024-11-13 20:25:26 +02:00
Jacek Generowicz 0a8bfc52a6 Move from unix-family to common 2024-10-31 08:03:45 +02:00
Jacek Generowicz 9090fb75e0 Make .debdiff imply .diff using syntax_mapping toml
Closes #2940
2024-10-31 08:03:45 +02:00
Keith Hall bd3c49d234 Merge remote-tracking branch 'origin/master' into pacman-conf 2024-10-31 05:08:46 +02:00
Keith Hall a80d5ea9f7 Merge branch 'master' into pacman-conf 2024-10-21 23:02:56 +03:00
Keith Hall c11a7d9e41 Merge branch 'master' into kubernetes 2024-10-21 23:01:30 +03:00
Jarasłaŭ Viktorčyk 9a816c9c68 Add syntax mapping for CITATION.cff 2024-10-13 11:47:31 +02:00
einfachIrgendwer0815 bc69ffb0f0 Map *.mkd files to Markdown syntax (#3061) 2024-09-26 21:06:07 +02:00
Mikael Vaaltola ed7789d9b7 Associate GeoJSON .geojson files with json syntax (fixes #3083) 2024-09-20 06:14:26 +02:00
Michael Vorburger 23fd200482 Associate JSON-LD .jsonld files with json syntax (fixes #3036)
Use PR instead of Issue # number in CHANGELOG.

Clean up (unify) CHANGELOG.
2024-07-27 15:48:02 +02:00
cyqsimon 7bd6cdbebc Add syntax mapping for kubernetes config files 2024-07-26 23:23:58 +08:00
cyqsimon 3a9d574770 Add syntax mapping for /etc/pacman.conf 2024-05-15 14:31:25 +08:00
cyqsimon 46a2c004a2 Add syntax mapping for Wireguard config 2024-02-29 14:25:20 +08:00
Lena 4c85483486 Inline format! args wherever possible 2024-02-25 00:38:11 +01:00
David Peter 4549f83689 Merge branch 'master' into quadlet 2024-02-23 21:54:36 +01:00
David Peter a6f01af8de Merge branch 'master' into containers-conf 2024-02-23 21:50:35 +01:00
David Peter b718889ba2 Merge branch 'master' into master 2024-02-23 21:48:44 +01:00
cyqsimon 92915e22e7 Map containers .conf files to TOML syntax 2024-02-21 00:25:06 +08:00
cyqsimon 152d69fe98 Add syntax mapping for podman quadlets 2024-02-20 14:49:12 +08:00
mxaddict a5bd9f51be Added JSONC and aws credentials to the syntax mappings 2024-02-11 04:57:42 +08:00
Andy Kipp 0af1df5258 Create xonsh.toml 2024-01-31 14:07:56 +01:00
cyqsimon c0f2d6f934 Add note on subdirectory's irrelevance to ordering 2024-01-18 23:26:00 +08:00
cyqsimon 36073a3d95 Document another rule ignore condition 2023-12-11 10:21:06 +08:00
cyqsimon 1f10d846a3 Fix tests
1. for override test, test for something in `common`
2. move git mappings to `common`
2023-12-11 10:21:05 +08:00
cyqsimon 22531eab90 Port all mappings to new system 2023-12-11 10:21:05 +08:00