8000 Bash partially highlights IP address · Issue #305 · alecthomas/chroma · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Bash partially highlights IP address #305
Closed
@exploide

Description

@exploide

Describe the bug

When highlighting Bash code, the first octet of an IPv4 address is colored (like a number). The last three octets are not highlighted. This looks a bit odd. When highlighting the code in Fish syntax, it is not colored, so I assume it's an issue with the bash lexer parsing literal numbers.

To Reproduce

Just try the following on the Chroma playground. Language Bash, Style monokai.

ping 192.0.2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0