Skip to content

font-lock-warning-face for @inbounds and @generated #179

@non-Jedi

Description

@non-Jedi

Per the manual, font-lock-warning-face is the most prominent face for font-locking:

for a construct that is peculiar (e.g., an unescaped confusable
quote in an Emacs Lisp symbol like ‘‘foo’), or that greatly changes
the meaning of other text, like ‘;;;###autoload’ in Emacs Lisp and
‘#error’ in C.

Given the danger of incorrect usage of @inbounds and the degree to which @generated changes the meaning of a function or if-statement, I think it makes sense to use this face for them.

Are there any other constructs that deserve this same level of prominence in font-locking? Does everyone generally agree that this is an appropriate usage for this face (and non-disruptive)?

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