1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-20 16:33:20 +00:00
Files
sharkdp--bat/src
Rizky Mirzaviandy Priambodo f49641a6c3 Fix syntax highlighting for symlinked files by resolving target path
When a symlink name has no recognizable extension (e.g. Aliases/0install),
syntax detection fails because the symlink path doesn't match any syntax.
The target file may have a recognizable extension (e.g. Formula/zero-install.rb)
but was never consulted.

When path-based syntax detection fails with UndetectedSyntax, canonicalize
the path to resolve symlinks and retry detection with the target path.
This preserves existing behavior where the symlink path itself matches
(e.g. .ssh/config), since the original path is tried first.

Closes #1001
2026-03-09 00:01:09 +07:00
..
2023-03-14 21:19:14 +01:00
2022-09-04 14:28:44 +02:00
2025-08-19 05:07:54 +02:00
2025-04-02 11:27:37 +02:00
2025-07-15 16:36:58 -07:00
2024-08-18 10:05:37 +02:00
2023-03-03 13:20:03 +01:00
2025-12-11 05:49:46 +01:00
2026-03-03 05:18:49 +02:00