Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
non-Jedi opened this issue Jan 11, 2023 · 0 comments
Open

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

non-Jedi opened this issue Jan 11, 2023 · 0 comments

Comments

@non-Jedi
Copy link
Contributor

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)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant