[vim/vim] runtime(c): classify type qualifiers, function specifiers and C23 attributes (PR #20368)

2 views
Skip to first unread message

mattn

unread,
May 29, 2026, 4:19:30 AM (5 days ago) May 29
to vim/vim, Subscribed

Reclassify several keywords in the C syntax file that were all lumped into cStorageClass. const, volatile, restrict and _Atomic become cTypeQualifier, while inline and _Noreturn become cFunctionSpec. The C23 standard attributes deprecated, fallthrough, maybe_unused, nodiscard, unsequenced and reproducible are now highlighted as cStandardAttribute, and the existing noreturn moves into that group as well.

The three new groups link to cStorageClass rather than directly to StorageClass, so the default appearance is identical and users who already override cStorageClass keep their colors, while finer-grained customization (coloring qualifiers or attributes separately) becomes possible.

Fixes #19574


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/20368

Commit Summary

  • 7538ade runtime(c): classify type qualifiers, function specifiers and C23 attributes

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20368@github.com>

Christian Brabandt

unread,
Jun 1, 2026, 5:04:53 PM (yesterday) Jun 1
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#20368)

thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/20368/c4596499311@github.com>

Reply all
Reply to author
Forward
0 new messages