Skip to content

Name of man pages with dots is not fully highlighted #1511

@duongdominhchau

Description

@duongdominhchau

Description

Names like pacman.conf or systemd-system.conf does not get highlighted correctly, only the part after the dot is highlighted.

image

Command used to produce the image above:

MANPAGER="sh -c 'col -bx | bat -l man -p'" man systemd

Expected result

The whole name (e.g: systemd-system.conf) is highlighted instead of just the part after the dot.

Environment

bat is installed using the package in Arch official repo.

info.sh output:

system
------

**$ uname -srm**
Linux 5.9.14-arch1-1 x86_64

**$ lsb_release -a**
LSB Version:	1.4
Distributor ID:	Arch
Description:	Arch Linux
Release:	rolling
Codename:	n/a

bat
---

**$ bat --version**
bat 0.17.1

**$ env**
PAGER=less

bat_config
----------

bat_wrapper
-----------

No wrapper script for 'bat'.

bat_wrapper_function
--------------------

No wrapper function for 'bat'.

No wrapper function for 'cat'.

tool
----

**$ less --version**
less 563 (PCRE regular expressions)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions