Skip to content

Not all characters literals are font locked properly #547

Closed
@yuhan0

Description

@yuhan0

Expected behavior

Character literals such as \A should be highlighted with clojure-character-face.

The official guide does not explicitly state what is allowed, but current Clojure readers accept practically any Unicode character such , \字, even \ (space)

Actual behavior

Only punctuation, numbers and lowercase characters are correctly highlighted according to the current rules.

("\\\\\\([[:punct:]]\\|[a-z0-9]+\\>\\)" 0 'clojure-character-face)

Steps to reproduce the problem

Insert \A in a clojure-mode buffer

Environment & Version information

clojure-mode version information

clojure-mode (version 5.11.0)

Emacs version

26.3

Operating system

macOS 10.14

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions